rust/tests/ui/dollar-crate/dollar-crate-is-keyword.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.4 KiB
Plaintext
Raw Normal View History

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 {}
| ^^^^^^ 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
|
= 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
|
= 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
|
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
|
= 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
|
= 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