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