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

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

mod sub {
    pub fn bar() {}
}

fn foo() {
    use my::sub;
    {
        use sub::bar; // OK
    }
}

fn main() {}