]> git.lizzy.rs Git - rust.git/blob - tests/ui/shadowed/shadowed-use-visibility.stderr
Rollup merge of #107086 - clubby789:bootstrap-lock-pid-linux, r=albertlarsan68
[rust.git] / tests / ui / shadowed / shadowed-use-visibility.stderr
1 error[E0603]: module import `bar` is private
2   --> $DIR/shadowed-use-visibility.rs:9:14
3    |
4 LL |     use foo::bar::f as g;
5    |              ^^^ private module import
6    |
7 note: the module import `bar` is defined here...
8   --> $DIR/shadowed-use-visibility.rs:4:9
9    |
10 LL |     use foo as bar;
11    |         ^^^^^^^^^^
12 note: ...and refers to the module `foo` which is defined here
13   --> $DIR/shadowed-use-visibility.rs:1:1
14    |
15 LL | mod foo {
16    | ^^^^^^^
17
18 error[E0603]: module import `f` is private
19   --> $DIR/shadowed-use-visibility.rs:15:10
20    |
21 LL | use bar::f::f;
22    |          ^ private module import
23    |
24 note: the module import `f` is defined here...
25   --> $DIR/shadowed-use-visibility.rs:11:9
26    |
27 LL |     use foo as f;
28    |         ^^^^^^^^
29 note: ...and refers to the module `foo` which is defined here
30   --> $DIR/shadowed-use-visibility.rs:1:1
31    |
32 LL | mod foo {
33    | ^^^^^^^
34
35 error: aborting due to 2 previous errors
36
37 For more information about this error, try `rustc --explain E0603`.