1 error[E0603]: module import `bar` is private
2 --> $DIR/shadowed-use-visibility.rs:9:14
4 LL | use foo::bar::f as g;
5 | ^^^ private module import
7 note: the module import `bar` is defined here...
8 --> $DIR/shadowed-use-visibility.rs:4:9
12 note: ...and refers to the module `foo` which is defined here
13 --> $DIR/shadowed-use-visibility.rs:1:1
18 error[E0603]: module import `f` is private
19 --> $DIR/shadowed-use-visibility.rs:15:10
22 | ^ private module import
24 note: the module import `f` is defined here...
25 --> $DIR/shadowed-use-visibility.rs:11:9
29 note: ...and refers to the module `foo` which is defined here
30 --> $DIR/shadowed-use-visibility.rs:1:1
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0603`.