summaryrefslogtreecommitdiffstats
path: root/tests/ui/shadowed/shadowed-use-visibility.rs
blob: 6b801972f4179bd5002c5d3594e0c44cfafa3942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod foo {
    pub fn f() {}

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

mod bar {
    use foo::bar::f as g; //~ ERROR module import `bar` is private

    use foo as f;
    pub use foo::*;
}

use bar::f::f; //~ ERROR module import `f` is private
fn main() {}