]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/private-variant-reexport.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / privacy / private-variant-reexport.stderr
1 error: variant `V` is private and cannot be re-exported
2   --> $DIR/private-variant-reexport.rs:2:13
3    |
4 LL |     pub use ::E::V; //~ ERROR variant `V` is private and cannot be re-exported
5    |             ^^^^^^
6 ...
7 LL | enum E { V }
8    | ------ help: consider making the enum public: `pub enum E`
9
10 error: variant `V` is private and cannot be re-exported
11   --> $DIR/private-variant-reexport.rs:6:19
12    |
13 LL |     pub use ::E::{V}; //~ ERROR variant `V` is private and cannot be re-exported
14    |                   ^
15
16 error: variant `V` is private and cannot be re-exported
17   --> $DIR/private-variant-reexport.rs:10:22
18    |
19 LL |     pub use ::E::V::{self}; //~ ERROR variant `V` is private and cannot be re-exported
20    |                      ^^^^
21
22 error: enum is private and its variants cannot be re-exported
23   --> $DIR/private-variant-reexport.rs:14:13
24    |
25 LL |     pub use ::E::*; //~ ERROR enum is private and its variants cannot be re-exported
26    |             ^^^^^^
27
28 error: aborting due to 4 previous errors
29