]> git.proxmox.com Git - rustc.git/blob - src/test/ui/privacy/issue-46209-private-enum-variant-reexport.stderr
b876bab6c542f574aa7b52c8e17bd404fd5ec0d7
[rustc.git] / src / test / ui / privacy / issue-46209-private-enum-variant-reexport.stderr
1 error: variant `JuniorGrade` is private and cannot be re-exported
2 --> $DIR/issue-46209-private-enum-variant-reexport.rs:6:32
3 |
4 LL | pub use self::Lieutenant::{JuniorGrade, Full};
5 | ^^^^^^^^^^^
6 ...
7 LL | enum Lieutenant {
8 | --------------- help: consider making the enum public: `pub enum Lieutenant`
9
10 error: variant `Full` is private and cannot be re-exported
11 --> $DIR/issue-46209-private-enum-variant-reexport.rs:6:45
12 |
13 LL | pub use self::Lieutenant::{JuniorGrade, Full};
14 | ^^^^
15
16 error: enum is private and its variants cannot be re-exported
17 --> $DIR/issue-46209-private-enum-variant-reexport.rs:4:13
18 |
19 LL | pub use self::Professor::*;
20 | ^^^^^^^^^^^^^^^^^^
21 ...
22 LL | enum Professor {
23 | -------------- help: consider making the enum public: `pub enum Professor`
24
25 error: enum is private and its variants cannot be re-exported
26 --> $DIR/issue-46209-private-enum-variant-reexport.rs:9:13
27 |
28 LL | pub use self::PettyOfficer::*;
29 | ^^^^^^^^^^^^^^^^^^^^^
30 ...
31 LL | pub(in rank) enum PettyOfficer {
32 | ------------------------------ help: consider making the enum public: `pub enum PettyOfficer`
33
34 error: enum is private and its variants cannot be re-exported
35 --> $DIR/issue-46209-private-enum-variant-reexport.rs:11:13
36 |
37 LL | pub use self::Crewman::*;
38 | ^^^^^^^^^^^^^^^^
39 ...
40 LL | crate enum Crewman {
41 | ------------------ help: consider making the enum public: `pub enum Crewman`
42
43 error: aborting due to 5 previous errors
44