]> git.proxmox.com Git - rustc.git/blame - src/test/ui/dollar-crate/dollar-crate-is-keyword.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / dollar-crate / dollar-crate-is-keyword.stderr
CommitLineData
b7449926 1error: expected identifier, found reserved identifier `$crate`
0731742a 2 --> $DIR/dollar-crate-is-keyword.rs:6:20
b7449926 3 |
532ac7d7 4LL | struct $crate {}
b7449926
XL
5 | ^^^^^^ expected identifier, found reserved identifier
6...
7LL | 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
12error: expected identifier, found reserved identifier `$crate`
dfeec247 13 --> $DIR/dollar-crate-is-keyword.rs:10:23
b7449926 14 |
532ac7d7 15LL | use $crate as $crate;
b7449926
XL
16 | ^^^^^^ expected identifier, found reserved identifier
17...
18LL | 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 23error: `$crate` may not be imported
0731742a 24 --> $DIR/dollar-crate-is-keyword.rs:9:9
b7449926 25 |
dfeec247 26LL | use $crate;
b7449926
XL
27 | ^^^^^^^^^^^
28...
29LL | 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
34error: `$crate` may not be imported
35 --> $DIR/dollar-crate-is-keyword.rs:10:9
b7449926 36 |
532ac7d7 37LL | use $crate as $crate;
b7449926
XL
38 | ^^^^^^^^^^^^^^^^^^^^^
39...
40LL | 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 45error: aborting due to 4 previous errors
b7449926 46