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