]> git.proxmox.com Git - rustc.git/blob - src/test/ui/use/use-super-global-path.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / use / use-super-global-path.rs
1 #![allow(unused)]
2
3 struct S;
4 struct Z;
5
6 mod foo {
7 use ::super::{S, Z}; //~ ERROR global paths cannot start with `super`
8 //~| ERROR global paths cannot start with `super`
9
10 pub fn g() {
11 use ::super::main; //~ ERROR global paths cannot start with `super`
12 main();
13 }
14 }
15
16 fn main() { foo::g(); }