1 #![feature(crate_visibility_modifier)]
2
3 #[deny(unused_imports)]
4 mod rank {
5 pub use self::Professor::*;
6 //~^ ERROR glob import doesn't reexport anything
7 pub use self::Lieutenant::{JuniorGrade, Full};
8 //~^ ERROR `JuniorGrade` is private, and cannot be re-exported
9 //~| ERROR `Full` is private, and cannot be re-exported
10 pub use self::PettyOfficer::*;
11 //~^ ERROR glob import doesn't reexport anything
12 pub use self::Crewman::*;
13 //~^ ERROR glob import doesn't reexport anything
14
15 enum Professor {
16 Adjunct,
17 Assistant,
18 Associate,
19 Full
20 }
21
22 enum Lieutenant {
23 JuniorGrade,
24 Full,
25 }
26
27 pub(in rank) enum PettyOfficer {
28 SecondClass,
29 FirstClass,
30 Chief,
31 MasterChief
32 }
33
34 crate enum Crewman {
35 Recruit,
36 Apprentice,
37 Full
38 }
39
40 }
41
main()42 fn main() {}
43