1 error: expected identifier, found reserved identifier `$crate`
2 --> $DIR/dollar-crate-is-keyword.rs:16:20
4 LL | struct $crate {} //~ ERROR expected identifier, found reserved identifier `$crate`
5 | ^^^^^^ expected identifier, found reserved identifier
8 | ----- in this macro invocation
10 error: expected identifier, found reserved identifier `$crate`
11 --> $DIR/dollar-crate-is-keyword.rs:21:23
13 LL | use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
14 | ^^^^^^ expected identifier, found reserved identifier
17 | ----- in this macro invocation
19 warning: `$crate` may not be imported
20 --> $DIR/dollar-crate-is-keyword.rs:19:9
22 LL | use $crate; // OK
26 | ----- in this macro invocation
28 = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
30 warning: `$crate` may not be imported
31 --> $DIR/dollar-crate-is-keyword.rs:21:9
33 LL | use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
34 | ^^^^^^^^^^^^^^^^^^^^^
37 | ----- in this macro invocation
39 = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
41 error: aborting due to 2 previous errors