]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-super-global-path.rs
Rollup merge of #67948 - llogiq:gallop, r=Mark-Simulacrum
[rust.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(); //~ ERROR cannot find function `main` in this scope
13     }
14 }
15
16 fn main() { foo::g(); }