fork/rust

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

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

1.41.0
869 B27 linesraw
1error[E0433]: failed to resolve: global paths cannot start with `super`
2  --> $DIR/use-super-global-path.rs:7:11
3   |
4LL |     use ::super::{S, Z};
5   |           ^^^^^ global paths cannot start with `super`
6
7error[E0433]: failed to resolve: global paths cannot start with `super`
8  --> $DIR/use-super-global-path.rs:10:15
9   |
10LL |         use ::super::main;
11   |               ^^^^^ global paths cannot start with `super`
12
13error[E0425]: cannot find function `main` in this scope
14  --> $DIR/use-super-global-path.rs:11:9
15   |
16LL |         main();
17   |         ^^^^ not found in this scope
18   |
19help: possible candidate is found in another module, you can import it into scope
20   |
21LL |     use main;
22   |
23
24error: aborting due to 3 previous errors
25
26Some errors have detailed explanations: E0425, E0433.
27For more information about an error, try `rustc --explain E0425`.