fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB37 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   |
10   = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12error[E0432]: unresolved import `a::$crate`
13  --> $DIR/dollar-crate-is-keyword-2.rs:5:13
14   |
15LL |         use a::$crate;
16   |             ^^^^^^^^^ no `$crate` in `a`
17...
18LL | 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
23error[E0433]: failed to resolve: `$crate` in paths can only be used in start position
24  --> $DIR/dollar-crate-is-keyword-2.rs:7:21
25   |
26LL |         type A = a::$crate;
27   |                     ^^^^^^ `$crate` in paths can only be used in start position
28...
29LL | 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
34error: aborting due to 3 previous errors
35
36Some errors have detailed explanations: E0432, E0433.
37For more information about an error, try `rustc --explain E0432`.