fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
735 B27 linesraw
1error[E0603]: module import `bar` is private
2  --> $DIR/shadowed-use-visibility.rs:9:14
3   |
4LL |     use foo::bar::f as g;
5   |              ^^^ this module import is private
6   |
7note: the module import `bar` is defined here
8  --> $DIR/shadowed-use-visibility.rs:4:9
9   |
10LL |     use foo as bar;
11   |         ^^^^^^^^^^
12
13error[E0603]: module import `f` is private
14  --> $DIR/shadowed-use-visibility.rs:15:10
15   |
16LL | use bar::f::f;
17   |          ^ this module import is private
18   |
19note: the module import `f` is defined here
20  --> $DIR/shadowed-use-visibility.rs:11:9
21   |
22LL |     use foo as f;
23   |         ^^^^^^^^
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0603`.