]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: expected identifier, found reserved identifier `$crate` |
0731742a | 2 | --> $DIR/dollar-crate-is-keyword.rs:6:20 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | struct $crate {} |
b7449926 XL |
5 | | ^^^^^^ expected identifier, found reserved identifier |
6 | ... | |
7 | LL | m!(); | |
8 | | ----- in this macro invocation | |
74b04a01 | 9 | | |
17df50a5 | 10 | = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 XL |
11 | |
12 | error: expected identifier, found reserved identifier `$crate` | |
dfeec247 | 13 | --> $DIR/dollar-crate-is-keyword.rs:10:23 |
b7449926 | 14 | | |
532ac7d7 | 15 | LL | use $crate as $crate; |
b7449926 XL |
16 | | ^^^^^^ expected identifier, found reserved identifier |
17 | ... | |
18 | LL | m!(); | |
19 | | ----- in this macro invocation | |
74b04a01 | 20 | | |
17df50a5 | 21 | = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 | 22 | |
dfeec247 | 23 | error: `$crate` may not be imported |
0731742a | 24 | --> $DIR/dollar-crate-is-keyword.rs:9:9 |
b7449926 | 25 | | |
dfeec247 | 26 | LL | use $crate; |
b7449926 XL |
27 | | ^^^^^^^^^^^ |
28 | ... | |
29 | LL | m!(); | |
30 | | ----- in this macro invocation | |
74b04a01 | 31 | | |
17df50a5 | 32 | = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 | 33 | |
dfeec247 XL |
34 | error: `$crate` may not be imported |
35 | --> $DIR/dollar-crate-is-keyword.rs:10:9 | |
b7449926 | 36 | | |
532ac7d7 | 37 | LL | use $crate as $crate; |
b7449926 XL |
38 | | ^^^^^^^^^^^^^^^^^^^^^ |
39 | ... | |
40 | LL | m!(); | |
41 | | ----- in this macro invocation | |
74b04a01 | 42 | | |
17df50a5 | 43 | = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 | 44 | |
dfeec247 | 45 | error: aborting due to 4 previous errors |
b7449926 | 46 |