]> git.lizzy.rs Git - rust.git/blob - tests/ui/dollar-crate/dollar-crate-is-keyword.stderr
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / dollar-crate / dollar-crate-is-keyword.stderr
1 error: expected identifier, found reserved identifier `$crate`
2   --> $DIR/dollar-crate-is-keyword.rs:6:20
3    |
4 LL |             struct $crate {}
5    |                    ^^^^^^ expected identifier, found reserved identifier
6 ...
7 LL | m!();
8    | ---- in this macro invocation
9    |
10    = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error: expected identifier, found reserved identifier `$crate`
13   --> $DIR/dollar-crate-is-keyword.rs:10:23
14    |
15 LL |         use $crate as $crate;
16    |                       ^^^^^^ expected identifier, found reserved identifier
17 ...
18 LL | m!();
19    | ---- in this macro invocation
20    |
21    = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error: `$crate` may not be imported
24   --> $DIR/dollar-crate-is-keyword.rs:9:9
25    |
26 LL |         use $crate;
27    |         ^^^^^^^^^^^
28 ...
29 LL | m!();
30    | ---- in this macro invocation
31    |
32    = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34 error: `$crate` may not be imported
35   --> $DIR/dollar-crate-is-keyword.rs:10:9
36    |
37 LL |         use $crate as $crate;
38    |         ^^^^^^^^^^^^^^^^^^^^^
39 ...
40 LL | m!();
41    | ---- in this macro invocation
42    |
43    = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
44
45 error: aborting due to 4 previous errors
46