summary refs log tree commit diff
path: root/src/test/run-pass/self-shadowing-import.rs
blob: 7887990f080c0a485ee6d52cc2e6ba48022a52a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod a {
    mod b {
        mod a {
            fn foo() -> int { ret 1; }
        }
    }
}

mod c {
    import a::b::a;
    fn bar() { assert (a::foo() == 1); }
}

fn main() { c::bar(); }