]> git.lizzy.rs Git - rust.git/blob - tests/ui/use/use-super-global-path.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / 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(); }