@@ -11,52 +11,64 @@ LL | pub use super::foo;
11
11
| ^^^^^^^^^^
12
12
13
13
error[E0603]: module import `foo` is private
14
- --> $DIR/reexports.rs:33 :15
14
+ --> $DIR/reexports.rs:36 :15
15
15
|
16
16
LL | use b::a::foo::S;
17
17
| ^^^ private module import
18
18
|
19
19
note: the module import `foo` is defined here...
20
- --> $DIR/reexports.rs:21 :17
20
+ --> $DIR/reexports.rs:24 :17
21
21
|
22
22
LL | pub use super::foo; // This is OK since the value `foo` is visible enough.
23
23
| ^^^^^^^^^^
24
24
note: ...and refers to the module `foo` which is defined here
25
- --> $DIR/reexports.rs:16 :5
25
+ --> $DIR/reexports.rs:19 :5
26
26
|
27
27
LL | mod foo {
28
28
| ^^^^^^^
29
29
30
30
error[E0603]: module import `foo` is private
31
- --> $DIR/reexports.rs:34 :15
31
+ --> $DIR/reexports.rs:37 :15
32
32
|
33
33
LL | use b::b::foo::S as T;
34
34
| ^^^ private module import
35
35
|
36
36
note: the module import `foo` is defined here...
37
- --> $DIR/reexports.rs:26 :17
37
+ --> $DIR/reexports.rs:29 :17
38
38
|
39
39
LL | pub use super::*; // This is also OK since the value `foo` is visible enough.
40
40
| ^^^^^^^^
41
41
note: ...and refers to the module `foo` which is defined here
42
- --> $DIR/reexports.rs:16 :5
42
+ --> $DIR/reexports.rs:19 :5
43
43
|
44
44
LL | mod foo {
45
45
| ^^^^^^^
46
46
47
- warning: glob import doesn't reexport anything because no candidate is public enough
48
- --> $DIR/reexports.rs:9 :17
47
+ warning: unused import: `super::foo`
48
+ --> $DIR/reexports.rs:8 :17
49
49
|
50
- LL | pub use super::* ;
51
- | ^^^^^^^^
50
+ LL | pub use super::foo ;
51
+ | ^^^^^^^^^^
52
52
|
53
53
note: the lint level is defined here
54
54
--> $DIR/reexports.rs:1:9
55
55
|
56
56
LL | #![warn(unused_imports)]
57
57
| ^^^^^^^^^^^^^^
58
58
59
- error: aborting due to 3 previous errors; 1 warning emitted
59
+ warning: glob import doesn't reexport anything because no candidate is public enough
60
+ --> $DIR/reexports.rs:11:17
61
+ |
62
+ LL | pub use super::*;
63
+ | ^^^^^^^^
64
+
65
+ warning: unused import: `super::*`
66
+ --> $DIR/reexports.rs:11:17
67
+ |
68
+ LL | pub use super::*;
69
+ | ^^^^^^^^
70
+
71
+ error: aborting due to 3 previous errors; 3 warnings emitted
60
72
61
73
Some errors have detailed explanations: E0364, E0603.
62
74
For more information about an error, try `rustc --explain E0364`.
0 commit comments