2021-01-06 09:07:47 -06:00
|
|
|
#[deny(unused_imports)]
|
2017-11-24 13:21:43 -06:00
|
|
|
mod rank {
|
|
|
|
pub use self::Professor::*;
|
2021-01-06 09:07:47 -06:00
|
|
|
//~^ ERROR glob import doesn't reexport anything
|
2017-11-24 13:21:43 -06:00
|
|
|
pub use self::Lieutenant::{JuniorGrade, Full};
|
2021-01-06 09:07:47 -06:00
|
|
|
//~^ ERROR `JuniorGrade` is private, and cannot be re-exported
|
|
|
|
//~| ERROR `Full` is private, and cannot be re-exported
|
2017-11-24 13:21:43 -06:00
|
|
|
pub use self::PettyOfficer::*;
|
2021-01-06 09:07:47 -06:00
|
|
|
//~^ ERROR glob import doesn't reexport anything
|
2017-11-24 13:21:43 -06:00
|
|
|
pub use self::Crewman::*;
|
2021-01-06 09:07:47 -06:00
|
|
|
//~^ ERROR glob import doesn't reexport anything
|
2017-11-24 13:21:43 -06:00
|
|
|
|
|
|
|
enum Professor {
|
|
|
|
Adjunct,
|
|
|
|
Assistant,
|
|
|
|
Associate,
|
|
|
|
Full
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Lieutenant {
|
|
|
|
JuniorGrade,
|
|
|
|
Full,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub(in rank) enum PettyOfficer {
|
|
|
|
SecondClass,
|
|
|
|
FirstClass,
|
|
|
|
Chief,
|
|
|
|
MasterChief
|
|
|
|
}
|
|
|
|
|
2022-05-20 20:06:44 -05:00
|
|
|
pub(crate) enum Crewman {
|
2017-11-24 13:21:43 -06:00
|
|
|
Recruit,
|
|
|
|
Apprentice,
|
|
|
|
Full
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|