fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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