]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/issue-46209-private-enum-variant-reexport.stderr
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / privacy / issue-46209-private-enum-variant-reexport.stderr
1 error[E0364]: `JuniorGrade` is private, and cannot be re-exported
2   --> $DIR/issue-46209-private-enum-variant-reexport.rs:5:32
3    |
4 LL |     pub use self::Lieutenant::{JuniorGrade, Full};
5    |                                ^^^^^^^^^^^
6    |
7 note: consider marking `JuniorGrade` as `pub` in the imported module
8   --> $DIR/issue-46209-private-enum-variant-reexport.rs:5:32
9    |
10 LL |     pub use self::Lieutenant::{JuniorGrade, Full};
11    |                                ^^^^^^^^^^^
12
13 error[E0364]: `Full` is private, and cannot be re-exported
14   --> $DIR/issue-46209-private-enum-variant-reexport.rs:5:45
15    |
16 LL |     pub use self::Lieutenant::{JuniorGrade, Full};
17    |                                             ^^^^
18    |
19 note: consider marking `Full` as `pub` in the imported module
20   --> $DIR/issue-46209-private-enum-variant-reexport.rs:5:45
21    |
22 LL |     pub use self::Lieutenant::{JuniorGrade, Full};
23    |                                             ^^^^
24
25 error: glob import doesn't reexport anything because no candidate is public enough
26   --> $DIR/issue-46209-private-enum-variant-reexport.rs:3:13
27    |
28 LL |     pub use self::Professor::*;
29    |             ^^^^^^^^^^^^^^^^^^
30    |
31 note: the lint level is defined here
32   --> $DIR/issue-46209-private-enum-variant-reexport.rs:1:8
33    |
34 LL | #[deny(unused_imports)]
35    |        ^^^^^^^^^^^^^^
36
37 error: glob import doesn't reexport anything because no candidate is public enough
38   --> $DIR/issue-46209-private-enum-variant-reexport.rs:8:13
39    |
40 LL |     pub use self::PettyOfficer::*;
41    |             ^^^^^^^^^^^^^^^^^^^^^
42
43 error: glob import doesn't reexport anything because no candidate is public enough
44   --> $DIR/issue-46209-private-enum-variant-reexport.rs:10:13
45    |
46 LL |     pub use self::Crewman::*;
47    |             ^^^^^^^^^^^^^^^^
48
49 error: aborting due to 5 previous errors
50
51 For more information about this error, try `rustc --explain E0364`.