summaryrefslogtreecommitdiffstats
path: root/tests/ui/shadowed-use-visibility.rs
blob: 350fbfeaeb5ba2566c3b1fd761517f0cdab704df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass

#![allow(unused_imports)]
mod foo {
    pub fn f() {}

    pub use self::f as bar;
    use foo as bar;
}

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