1 error: enum is private and its variants cannot be re-exported
2 --> $DIR/issue-46209-private-enum-variant-reexport.rs:19:13
4 LL | pub use self::PettyOfficer::*;
5 | ^^^^^^^^^^^^^^^^^^^^^
7 LL | pub(in rank) enum PettyOfficer {
8 | ------------------------------ help: consider making the enum public: `pub enum PettyOfficer`
10 error: enum is private and its variants cannot be re-exported
11 --> $DIR/issue-46209-private-enum-variant-reexport.rs:21:13
13 LL | pub use self::Crewman::*;
16 LL | crate enum Crewman {
17 | ------------------ help: consider making the enum public: `pub enum Crewman`
19 error: enum is private and its variants cannot be re-exported
20 --> $DIR/issue-46209-private-enum-variant-reexport.rs:14:13
22 LL | pub use self::Professor::*;
26 | -------------- help: consider making the enum public: `pub enum Professor`
28 error: variant `JuniorGrade` is private and cannot be re-exported
29 --> $DIR/issue-46209-private-enum-variant-reexport.rs:16:32
31 LL | pub use self::Lieutenant::{JuniorGrade, Full};
34 LL | enum Lieutenant {
35 | --------------- help: consider making the enum public: `pub enum Lieutenant`
37 error: variant `Full` is private and cannot be re-exported
38 --> $DIR/issue-46209-private-enum-variant-reexport.rs:16:45
40 LL | pub use self::Lieutenant::{JuniorGrade, Full};
43 error: aborting due to 5 previous errors