]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / dollar-crate / dollar-crate-is-keyword-2.stderr
1 error[E0433]: failed to resolve. `$crate` in paths can only be used in start position
2   --> $DIR/dollar-crate-is-keyword-2.rs:16:16
3    |
4 LL |         use a::$crate::b; //~ ERROR `$crate` in paths can only be used in start position
5    |                ^^^^^^ `$crate` in paths can only be used in start position
6 ...
7 LL | m!();
8    | ----- in this macro invocation
9
10 error[E0432]: unresolved import `a::$crate`
11   --> $DIR/dollar-crate-is-keyword-2.rs:15:13
12    |
13 LL |         use a::$crate; //~ ERROR unresolved import `a::$crate`
14    |             ^^^^^^^^^ no `$crate` in `a`
15 ...
16 LL | m!();
17    | ----- in this macro invocation
18
19 error[E0433]: failed to resolve. `$crate` in paths can only be used in start position
20   --> $DIR/dollar-crate-is-keyword-2.rs:17:21
21    |
22 LL |         type A = a::$crate; //~ ERROR `$crate` in paths can only be used in start position
23    |                     ^^^^^^ `$crate` in paths can only be used in start position
24 ...
25 LL | m!();
26    | ----- in this macro invocation
27
28 error: aborting due to 3 previous errors
29
30 Some errors occurred: E0432, E0433.
31 For more information about an error, try `rustc --explain E0432`.