summaryrefslogtreecommitdiffstats
path: root/tests/ui/double-type-import.rs
blob: 6b1eb65d5ae5b1ec74327de6cbc7b00b07f1ddad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod foo {
    pub use self::bar::X;
    use self::bar::X;
    //~^ ERROR the name `X` is defined multiple times

    mod bar {
        pub struct X;
    }
}

fn main() {
    let _ = foo::X;
}