]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dollar-crate/dollar-crate-is-keyword.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / dollar-crate / dollar-crate-is-keyword.stderr
1 error: expected identifier, found reserved identifier `$crate`
2   --> $DIR/dollar-crate-is-keyword.rs:16:20
3    |
4 LL |             struct $crate {} //~ ERROR expected identifier, found reserved identifier `$crate`
5    |                    ^^^^^^ expected identifier, found reserved identifier
6 ...
7 LL | m!();
8    | ----- in this macro invocation
9
10 error: expected identifier, found reserved identifier `$crate`
11   --> $DIR/dollar-crate-is-keyword.rs:21:23
12    |
13 LL |         use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
14    |                       ^^^^^^ expected identifier, found reserved identifier
15 ...
16 LL | m!();
17    | ----- in this macro invocation
18
19 warning: `$crate` may not be imported
20   --> $DIR/dollar-crate-is-keyword.rs:19:9
21    |
22 LL |         use $crate; // OK
23    |         ^^^^^^^^^^^
24 ...
25 LL | m!();
26    | ----- in this macro invocation
27    |
28    = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
29
30 warning: `$crate` may not be imported
31   --> $DIR/dollar-crate-is-keyword.rs:21:9
32    |
33 LL |         use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
34    |         ^^^^^^^^^^^^^^^^^^^^^
35 ...
36 LL | m!();
37    | ----- in this macro invocation
38    |
39    = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
40
41 error: aborting due to 2 previous errors
42