fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.4 KiB46 linesraw
1error: expected identifier, found reserved identifier `$crate`
2  --> $DIR/dollar-crate-is-keyword.rs:6:20
3   |
4LL |             struct $crate {}
5   |                    ^^^^^^ expected identifier, found reserved identifier
6...
7LL | m!();
8   | ----- in this macro invocation
9   |
10   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
11
12error: expected identifier, found reserved identifier `$crate`
13  --> $DIR/dollar-crate-is-keyword.rs:10:23
14   |
15LL |         use $crate as $crate;
16   |                       ^^^^^^ expected identifier, found reserved identifier
17...
18LL | m!();
19   | ----- in this macro invocation
20   |
21   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
22
23error: `$crate` may not be imported
24  --> $DIR/dollar-crate-is-keyword.rs:9:9
25   |
26LL |         use $crate;
27   |         ^^^^^^^^^^^
28...
29LL | m!();
30   | ----- in this macro invocation
31   |
32   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
33
34error: `$crate` may not be imported
35  --> $DIR/dollar-crate-is-keyword.rs:10:9
36   |
37LL |         use $crate as $crate;
38   |         ^^^^^^^^^^^^^^^^^^^^^
39...
40LL | m!();
41   | ----- in this macro invocation
42   |
43   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
44
45error: aborting due to 4 previous errors
46