2018-08-08 07:28:26 -05:00
|
|
|
error: expected identifier, found reserved identifier `$crate`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:6:20
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | struct $crate {}
|
2018-08-08 07:50:16 -05:00
|
|
|
| ^^^^^^ expected identifier, found reserved identifier
|
2018-08-08 07:28:26 -05:00
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: expected identifier, found reserved identifier `$crate`
|
2020-01-02 00:38:59 -06:00
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:10:23
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use $crate as $crate;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^ expected identifier, found reserved identifier
|
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-02 00:38:59 -06:00
|
|
|
error: `$crate` may not be imported
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:9:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-01-03 03:50:12 -06:00
|
|
|
LL | use $crate;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-02 00:38:59 -06:00
|
|
|
error: `$crate` may not be imported
|
|
|
|
--> $DIR/dollar-crate-is-keyword.rs:10:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use $crate as $crate;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | m!();
|
|
|
|
| ----- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-02 00:38:59 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2020-01-03 03:25:49 -06:00
|
|
|
|