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