fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
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 a macro (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 a macro (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 a macro (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`.