1
- error: enum is private and its variants cannot be reexported
2
- --> $DIR/issue-46209-private-enum-variant-reexport.rs:21:13
1
+ error: variant is private and cannot be reexported
2
+ --> $DIR/issue-46209-private-enum-variant-reexport.rs:16:32
3
3
|
4
- 21 | pub use self::Crewman::* ;
5
- | ^^^^^^ ^^^^^^^^^^^
4
+ 16 | pub use self::Lieutenant::{JuniorGrade, Full} ;
5
+ | ^^^^^^^^^^^
6
6
...
7
- 43 | crate enum Crewman {
8
- | ------------------ help: consider making the enum public: `pub enum Crewman`
7
+ 31 | enum Lieutenant {
8
+ | --------------- help: consider making the enum public: `pub enum Lieutenant`
9
+
10
+ error: variant is private and cannot be reexported
11
+ --> $DIR/issue-46209-private-enum-variant-reexport.rs:16:45
12
+ |
13
+ 16 | pub use self::Lieutenant::{JuniorGrade, Full};
14
+ | ^^^^
9
15
10
16
error: enum is private and its variants cannot be reexported
11
17
--> $DIR/issue-46209-private-enum-variant-reexport.rs:14:13
@@ -16,15 +22,6 @@ error: enum is private and its variants cannot be reexported
16
22
24 | enum Professor {
17
23
| -------------- help: consider making the enum public: `pub enum Professor`
18
24
19
- error: variant is private and cannot be reexported
20
- --> $DIR/issue-46209-private-enum-variant-reexport.rs:16:45
21
- |
22
- 16 | pub use self::Lieutenant::{JuniorGrade, Full};
23
- | ^^^^
24
- ...
25
- 31 | enum Lieutenant {
26
- | --------------- help: consider making the enum public: `pub enum Lieutenant`
27
-
28
25
error: enum is private and its variants cannot be reexported
29
26
--> $DIR/issue-46209-private-enum-variant-reexport.rs:19:13
30
27
|
@@ -34,11 +31,14 @@ error: enum is private and its variants cannot be reexported
34
31
36 | pub(in rank) enum PettyOfficer {
35
32
| ------------------------------ help: consider making the enum public: `pub enum PettyOfficer`
36
33
37
- error: variant is private and cannot be reexported
38
- --> $DIR/issue-46209-private-enum-variant-reexport.rs:16:32
34
+ error: enum is private and its variants cannot be reexported
35
+ --> $DIR/issue-46209-private-enum-variant-reexport.rs:21:13
39
36
|
40
- 16 | pub use self::Lieutenant::{JuniorGrade, Full};
41
- | ^^^^^^^^^^^
37
+ 21 | pub use self::Crewman::*;
38
+ | ^^^^^^^^^^^^^^^^^
39
+ ...
40
+ 43 | crate enum Crewman {
41
+ | ------------------ help: consider making the enum public: `pub enum Crewman`
42
42
43
43
error: aborting due to 5 previous errors
44
44
0 commit comments