]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/issue-8208.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / issue-8208.rs
1 use self::*; //~ ERROR: unresolved import `self::*` [E0432]
2              //~^ cannot glob-import a module into itself
3
4 mod foo {
5     use foo::*; //~ ERROR: unresolved import `foo::*` [E0432]
6                 //~^ cannot glob-import a module into itself
7
8     mod bar {
9         use super::bar::*;
10         //~^ ERROR: unresolved import `super::bar::*` [E0432]
11         //~| cannot glob-import a module into itself
12     }
13
14 }
15
16 fn main() {
17 }