fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
988 B38 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
10error: expected identifier, found reserved identifier `$crate`
11  --> $DIR/dollar-crate-is-keyword.rs:10:23
12   |
13LL |         use $crate as $crate;
14   |                       ^^^^^^ expected identifier, found reserved identifier
15...
16LL | m!();
17   | ----- in this macro invocation
18
19error: `$crate` may not be imported
20  --> $DIR/dollar-crate-is-keyword.rs:9:9
21   |
22LL |         use $crate;
23   |         ^^^^^^^^^^^
24...
25LL | m!();
26   | ----- in this macro invocation
27
28error: `$crate` may not be imported
29  --> $DIR/dollar-crate-is-keyword.rs:10:9
30   |
31LL |         use $crate as $crate;
32   |         ^^^^^^^^^^^^^^^^^^^^^
33...
34LL | m!();
35   | ----- in this macro invocation
36
37error: aborting due to 4 previous errors
38