summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-8208.rs
blob: 1c566938f9d0e15425238a44689d037a7768469d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use self::*; //~ ERROR: unresolved import `self::*` [E0432]
             //~^ cannot glob-import a module into itself

mod foo {
    use foo::*; //~ ERROR: unresolved import `foo::*` [E0432]
                //~^ cannot glob-import a module into itself

    mod bar {
        use super::bar::*;
        //~^ ERROR: unresolved import `super::bar::*` [E0432]
        //~| cannot glob-import a module into itself
    }

}

fn main() {
}