fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
864 B26 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
18help: possible candidate is found in another module, you can import it into scope
19   |
20LL |     use main;
21   |
22
23error: aborting due to 3 previous errors
24
25Some errors have detailed explanations: E0425, E0433.
26For more information about an error, try `rustc --explain E0425`.