summaryrefslogtreecommitdiffstats
path: root/src/test/ui/blind-item-local-shadow.rs
blob: 942aeb6fdf4019a7e821dc87a5d67bea11562394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass

#![allow(dead_code)]
#![allow(unused_imports)]
mod bar {
    pub fn foo() -> bool { true }
}

fn main() {
    let foo = || false;
    use bar::foo;
    assert_eq!(foo(), false);
}