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

20 lines
407 B
Rust
Raw Normal View History

mod m1 {
pub use ::E::V; //~ ERROR variant `V` is private and cannot be re-exported
}
mod m2 {
pub use ::E::{V}; //~ ERROR variant `V` is private and cannot be re-exported
}
mod m3 {
pub use ::E::V::{self}; //~ ERROR variant `V` is private and cannot be re-exported
}
mod m4 {
pub use ::E::*; //~ ERROR enum is private and its variants cannot be re-exported
}
2015-11-23 18:36:12 -06:00
enum E { V }
fn main() {}