|
| 1 | +error[E0424]: expected value, found module `self` |
| 2 | + --> $DIR/impl-reuse-self-hygiene.rs:10:76 |
| 3 | + | |
| 4 | +LL | macro_rules! one_line_reuse { ($self:ident) => { reuse impl Trait for S1 { $self.0 } } } |
| 5 | + | --------------------------^^^^^---- |
| 6 | + | | | |
| 7 | + | | `self` value is a keyword only available in methods with a `self` parameter |
| 8 | + | `self` not allowed in an implementation |
| 9 | +... |
| 10 | +LL | one_line_reuse!(self); |
| 11 | + | --------------------- in this macro invocation |
| 12 | + | |
| 13 | + = note: this error originates in the macro `one_line_reuse` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 14 | + |
| 15 | +error[E0424]: expected value, found module `self` |
| 16 | + --> $DIR/impl-reuse-self-hygiene.rs:10:76 |
| 17 | + | |
| 18 | +LL | macro_rules! one_line_reuse { ($self:ident) => { reuse impl Trait for S1 { $self.0 } } } |
| 19 | + | --------------------------^^^^^---- |
| 20 | + | | | |
| 21 | + | | `self` value is a keyword only available in methods with a `self` parameter |
| 22 | + | `self` not allowed in an implementation |
| 23 | +... |
| 24 | +LL | one_line_reuse!(self); |
| 25 | + | --------------------- in this macro invocation |
| 26 | + | |
| 27 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 28 | + = note: this error originates in the macro `one_line_reuse` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 29 | + |
| 30 | +error[E0424]: expected value, found module `self` |
| 31 | + --> $DIR/impl-reuse-self-hygiene.rs:17:22 |
| 32 | + | |
| 33 | +LL | macro_rules! one_line_reuse_expr { ($x:expr) => { reuse impl Trait for S2 { $x } } } |
| 34 | + | ------------------------------ `self` not allowed in an implementation |
| 35 | +LL | one_line_reuse_expr!(self.0); |
| 36 | + | ^^^^ `self` value is a keyword only available in methods with a `self` parameter |
| 37 | + |
| 38 | +error[E0424]: expected value, found module `self` |
| 39 | + --> $DIR/impl-reuse-self-hygiene.rs:17:22 |
| 40 | + | |
| 41 | +LL | macro_rules! one_line_reuse_expr { ($x:expr) => { reuse impl Trait for S2 { $x } } } |
| 42 | + | ------------------------------ `self` not allowed in an implementation |
| 43 | +LL | one_line_reuse_expr!(self.0); |
| 44 | + | ^^^^ `self` value is a keyword only available in methods with a `self` parameter |
| 45 | + | |
| 46 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 47 | + |
| 48 | +error[E0424]: expected value, found module `self` |
| 49 | + --> $DIR/impl-reuse-self-hygiene.rs:24:23 |
| 50 | + | |
| 51 | +LL | macro_rules! one_line_reuse_expr2 { ($x:expr) => { reuse impl Trait for s3!() { $x } } } |
| 52 | + | --------------------------------- `self` not allowed in an implementation |
| 53 | +LL | one_line_reuse_expr2!(self.0); |
| 54 | + | ^^^^ `self` value is a keyword only available in methods with a `self` parameter |
| 55 | + |
| 56 | +error[E0424]: expected value, found module `self` |
| 57 | + --> $DIR/impl-reuse-self-hygiene.rs:24:23 |
| 58 | + | |
| 59 | +LL | macro_rules! one_line_reuse_expr2 { ($x:expr) => { reuse impl Trait for s3!() { $x } } } |
| 60 | + | --------------------------------- `self` not allowed in an implementation |
| 61 | +LL | one_line_reuse_expr2!(self.0); |
| 62 | + | ^^^^ `self` value is a keyword only available in methods with a `self` parameter |
| 63 | + | |
| 64 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 65 | + |
| 66 | +error: aborting due to 6 previous errors |
| 67 | + |
| 68 | +For more information about this error, try `rustc --explain E0424`. |
0 commit comments