rust/src/test/ui/privacy/private-variant-reexport.stderr

30 lines
1016 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: variant `V` is private and cannot be re-exported
2018-12-25 09:56:47 -06:00
--> $DIR/private-variant-reexport.rs:2:13
2018-08-08 07:28:26 -05:00
|
LL | pub use ::E::V; //~ ERROR variant `V` is private and cannot be re-exported
| ^^^^^^
...
LL | enum E { V }
| ------ help: consider making the enum public: `pub enum E`
error: variant `V` is private and cannot be re-exported
2018-12-25 09:56:47 -06:00
--> $DIR/private-variant-reexport.rs:6:19
2018-08-08 07:28:26 -05:00
|
LL | pub use ::E::{V}; //~ ERROR variant `V` is private and cannot be re-exported
| ^
error: variant `V` is private and cannot be re-exported
2018-12-25 09:56:47 -06:00
--> $DIR/private-variant-reexport.rs:10:22
2018-08-08 07:28:26 -05:00
|
LL | pub use ::E::V::{self}; //~ ERROR variant `V` is private and cannot be re-exported
| ^^^^
error: enum is private and its variants cannot be re-exported
2018-12-25 09:56:47 -06:00
--> $DIR/private-variant-reexport.rs:14:13
2018-08-08 07:28:26 -05:00
|
LL | pub use ::E::*; //~ ERROR enum is private and its variants cannot be re-exported
| ^^^^^^
error: aborting due to 4 previous errors