summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.rs
blob: 3f5897901a056b7cb1714f880ebe41222e7d31f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// edition:2018

mod my {
    pub mod sub {
        pub fn bar() {}
    }
}

mod sub {
    pub fn bar() {}
}

fn foo() {
    use my::sub;
    {
        use sub::bar; //~ ERROR `sub` is ambiguous
    }
}

fn main() {}