fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0603]: module import `bar` is private 2 --> $DIR/shadowed-use-visibility.rs:9:14 3 | 4LL | use foo::bar::f as g; 5 | ^^^ private module import 6 | 7note: the module import `bar` is defined here... 8 --> $DIR/shadowed-use-visibility.rs:4:9 9 | 10LL | use foo as bar; 11 | ^^^^^^^^^^ 12note: ...and refers to the module `foo` which is defined here 13 --> $DIR/shadowed-use-visibility.rs:1:1 14 | 15LL | mod foo { 16 | ^^^^^^^ 17 18error[E0603]: module import `f` is private 19 --> $DIR/shadowed-use-visibility.rs:15:10 20 | 21LL | use bar::f::f; 22 | ^ private module import 23 | 24note: the module import `f` is defined here... 25 --> $DIR/shadowed-use-visibility.rs:11:9 26 | 27LL | use foo as f; 28 | ^^^^^^^^ 29note: ...and refers to the module `foo` which is defined here 30 --> $DIR/shadowed-use-visibility.rs:1:1 31 | 32LL | mod foo { 33 | ^^^^^^^ 34 35error: aborting due to 2 previous errors 36 37For more information about this error, try `rustc --explain E0603`.