]> git.proxmox.com Git - rustc.git/blame - src/test/ui/use/use-super-global-path.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / use / use-super-global-path.stderr
CommitLineData
13cf67c4 1error[E0433]: failed to resolve: global paths cannot start with `super`
0731742a 2 --> $DIR/use-super-global-path.rs:7:11
b7449926 3 |
532ac7d7 4LL | use ::super::{S, Z};
b7449926
XL
5 | ^^^^^ global paths cannot start with `super`
6
13cf67c4 7error[E0433]: failed to resolve: global paths cannot start with `super`
0731742a 8 --> $DIR/use-super-global-path.rs:10:15
b7449926 9 |
532ac7d7 10LL | use ::super::main;
b7449926
XL
11 | ^^^^^ global paths cannot start with `super`
12
13error[E0425]: cannot find function `main` in this scope
0731742a 14 --> $DIR/use-super-global-path.rs:11:9
b7449926 15 |
532ac7d7 16LL | main();
b7449926 17 | ^^^^ not found in this scope
e74abb32 18 |
b7449926
XL
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
48663c56 26Some errors have detailed explanations: E0425, E0433.
b7449926 27For more information about an error, try `rustc --explain E0425`.