@@ -22,7 +22,7 @@ note: consider marking `Full` as `pub` in the imported module
22
22
LL | pub use self::Lieutenant::{JuniorGrade, Full};
23
23
| ^^^^
24
24
25
- error: glob import doesn't reexport anything because no candidate is public enough
25
+ error: unused import: `self::Professor::*`
26
26
--> $DIR/issue-46209-private-enum-variant-reexport.rs:3:13
27
27
|
28
28
LL | pub use self::Professor::*;
@@ -34,41 +34,47 @@ note: the lint level is defined here
34
34
LL | #[deny(unused_imports)]
35
35
| ^^^^^^^^^^^^^^
36
36
37
- error: unused import: `self::Professor::*`
38
- --> $DIR/issue-46209-private-enum-variant-reexport.rs:3:13
39
- |
40
- LL | pub use self::Professor::*;
41
- | ^^^^^^^^^^^^^^^^^^
42
-
43
37
error: unused imports: `Full`, `JuniorGrade`
44
38
--> $DIR/issue-46209-private-enum-variant-reexport.rs:6:32
45
39
|
46
40
LL | pub use self::Lieutenant::{JuniorGrade, Full};
47
41
| ^^^^^^^^^^^ ^^^^
48
42
49
- error: glob import doesn't reexport anything because no candidate is public enough
43
+ error: unused import: `self::PettyOfficer::*`
50
44
--> $DIR/issue-46209-private-enum-variant-reexport.rs:10:13
51
45
|
52
46
LL | pub use self::PettyOfficer::*;
53
47
| ^^^^^^^^^^^^^^^^^^^^^
54
48
55
- error: unused import: `self::PettyOfficer::*`
49
+ error: unused import: `self::Crewman::*`
50
+ --> $DIR/issue-46209-private-enum-variant-reexport.rs:13:13
51
+ |
52
+ LL | pub use self::Crewman::*;
53
+ | ^^^^^^^^^^^^^^^^
54
+
55
+ error: glob import doesn't reexport anything because no candidate is public enough
56
+ --> $DIR/issue-46209-private-enum-variant-reexport.rs:3:13
57
+ |
58
+ LL | pub use self::Professor::*;
59
+ | ^^^^^^^^^^^^^^^^^^
60
+ |
61
+ = note: the most public imported item is `pub(self)`
62
+
63
+ error: glob import doesn't reexport anything because no candidate is public enough
56
64
--> $DIR/issue-46209-private-enum-variant-reexport.rs:10:13
57
65
|
58
66
LL | pub use self::PettyOfficer::*;
59
67
| ^^^^^^^^^^^^^^^^^^^^^
68
+ |
69
+ = note: the most public imported item is `pub(self)`
60
70
61
71
error: glob import doesn't reexport anything because no candidate is public enough
62
72
--> $DIR/issue-46209-private-enum-variant-reexport.rs:13:13
63
73
|
64
74
LL | pub use self::Crewman::*;
65
75
| ^^^^^^^^^^^^^^^^
66
-
67
- error: unused import: `self::Crewman::*`
68
- --> $DIR/issue-46209-private-enum-variant-reexport.rs:13:13
69
76
|
70
- LL | pub use self::Crewman::*;
71
- | ^^^^^^^^^^^^^^^^
77
+ = note: the most public imported item is `pub(crate)`
72
78
73
79
error: aborting due to 9 previous errors
74
80
0 commit comments