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