2018-08-08 07:28:26 -05:00
|
|
|
error: expected identifier, found reserved identifier `$crate`
|
2018-08-08 07:50:16 -05:00
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:16:20
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-08-08 07:50:16 -05:00
|
|
|
LL | struct $crate {} //~ ERROR expected identifier, found reserved identifier `$crate`
|
|
|
|
| ^^^^^^ expected identifier, found reserved identifier
|
2018-08-08 07:28:26 -05:00
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
|
|
|
|
|
|
|
error: expected identifier, found reserved identifier `$crate`
|
2018-08-08 07:50:16 -05:00
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:21:23
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
|
|
|
|
| ^^^^^^ expected identifier, found reserved identifier
|
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
|
|
|
|
|
|
|
warning: `$crate` may not be imported
|
2018-08-08 07:50:16 -05:00
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:19:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use $crate; // OK
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `use $crate;` was erroneously allowed and will become a hard error in a future release
|
|
|
|
|
|
|
|
warning: `$crate` may not be imported
|
2018-08-08 07:50:16 -05:00
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:21:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: `use $crate;` was erroneously allowed and will become a hard error in a future release
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|