fork/rust

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

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

1.42.0
987 B31 linesraw
1error[E0433]: failed to resolve: `$crate` in paths can only be used in start position
2  --> $DIR/dollar-crate-is-keyword-2.rs:6:16
3   |
4LL |         use a::$crate::b;
5   |                ^^^^^^ `$crate` in paths can only be used in start position
6...
7LL | m!();
8   | ----- in this macro invocation
9
10error[E0432]: unresolved import `a::$crate`
11  --> $DIR/dollar-crate-is-keyword-2.rs:5:13
12   |
13LL |         use a::$crate;
14   |             ^^^^^^^^^ no `$crate` in `a`
15...
16LL | m!();
17   | ----- in this macro invocation
18
19error[E0433]: failed to resolve: `$crate` in paths can only be used in start position
20  --> $DIR/dollar-crate-is-keyword-2.rs:7:21
21   |
22LL |         type A = a::$crate;
23   |                     ^^^^^^ `$crate` in paths can only be used in start position
24...
25LL | m!();
26   | ----- in this macro invocation
27
28error: aborting due to 3 previous errors
29
30Some errors have detailed explanations: E0432, E0433.
31For more information about an error, try `rustc --explain E0432`.