]> git.lizzy.rs Git - rust.git/blob - tests/ui/use/use-super-global-path.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[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(); }