|
1 |
| -error[E0603]: module import `f` is private |
2 |
| - --> $DIR/shadowed-use-visibility.rs:15:10 |
| 1 | +error[E0603]: module import `bar` is private |
| 2 | + --> $DIR/shadowed-use-visibility.rs:9:21 |
3 | 3 | |
|
4 |
| -LL | use bar::f::f; |
5 |
| - | ^ private module import |
| 4 | +LL | use crate::foo::bar::f as g; |
| 5 | + | ^^^ private module import |
6 | 6 | |
|
7 |
| -note: the module import `f` is defined here... |
8 |
| - --> $DIR/shadowed-use-visibility.rs:11:9 |
| 7 | +note: the module import `bar` is defined here... |
| 8 | + --> $DIR/shadowed-use-visibility.rs:4:9 |
9 | 9 | |
|
10 |
| -LL | use crate::foo as f; |
11 |
| - | ^^^^^^^^^^^^^^^ |
| 10 | +LL | use crate::foo as bar; |
| 11 | + | ^^^^^^^^^^^^^^^^^ |
12 | 12 | note: ...and refers to the module `foo` which is defined here
|
13 | 13 | --> $DIR/shadowed-use-visibility.rs:1:1
|
14 | 14 | |
|
15 | 15 | LL | mod foo {
|
16 | 16 | | ^^^^^^^
|
17 | 17 |
|
18 |
| -error[E0603]: module import `bar` is private |
19 |
| - --> $DIR/shadowed-use-visibility.rs:9:21 |
| 18 | +error[E0603]: module import `f` is private |
| 19 | + --> $DIR/shadowed-use-visibility.rs:15:10 |
20 | 20 | |
|
21 |
| -LL | use crate::foo::bar::f as g; |
22 |
| - | ^^^ private module import |
| 21 | +LL | use bar::f::f; |
| 22 | + | ^ private module import |
23 | 23 | |
|
24 |
| -note: the module import `bar` is defined here... |
25 |
| - --> $DIR/shadowed-use-visibility.rs:4:9 |
| 24 | +note: the module import `f` is defined here... |
| 25 | + --> $DIR/shadowed-use-visibility.rs:11:9 |
26 | 26 | |
|
27 |
| -LL | use crate::foo as bar; |
28 |
| - | ^^^^^^^^^^^^^^^^^ |
| 27 | +LL | use crate::foo as f; |
| 28 | + | ^^^^^^^^^^^^^^^ |
29 | 29 | note: ...and refers to the module `foo` which is defined here
|
30 | 30 | --> $DIR/shadowed-use-visibility.rs:1:1
|
31 | 31 | |
|
|
0 commit comments