fork/rust

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

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

1.42.0
520 B21 linesraw
1error: crate root imports need to be explicitly named: `use crate as name;`
2  --> $DIR/single-segment.rs:5:5
3   |
4LL | use crate;
5   |     ^^^^^
6
7error: cannot glob-import all possible crates
8  --> $DIR/single-segment.rs:6:5
9   |
10LL | use *;
11   |     ^
12
13error[E0423]: expected value, found crate `xcrate`
14  --> $DIR/single-segment.rs:9:13
15   |
16LL |     let s = ::xcrate;
17   |             ^^^^^^^^ not a value
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0423`.