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