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