fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
648 B22 linesraw
1error[E0429]: `self` imports are only allowed within a { } list
2  --> $DIR/use-keyword.rs:6:13
3   |
4LL |         use self as A;
5   |             ^^^^^^^^^
6
7error[E0432]: unresolved import `super`
8  --> $DIR/use-keyword.rs:8:13
9   |
10LL |         use super as B;
11   |             ^^^^^^^^^^ no `super` in the root
12
13error[E0432]: unresolved import `super`
14  --> $DIR/use-keyword.rs:11:21
15   |
16LL |         use super::{self as C};
17   |                     ^^^^^^^^^ no `super` in the root
18
19error: aborting due to 3 previous errors
20
21Some errors have detailed explanations: E0429, E0432.
22For more information about an error, try `rustc --explain E0429`.