2015-12-13 12:57:07 -06:00
|
|
|
mod m1 {
|
2018-01-12 15:41:45 -06:00
|
|
|
pub use ::E::V; //~ ERROR variant `V` is private and cannot be re-exported
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod m2 {
|
2018-01-12 15:41:45 -06:00
|
|
|
pub use ::E::{V}; //~ ERROR variant `V` is private and cannot be re-exported
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod m3 {
|
2018-01-12 15:41:45 -06:00
|
|
|
pub use ::E::V::{self}; //~ ERROR variant `V` is private and cannot be re-exported
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod m4 {
|
2018-01-12 15:41:45 -06:00
|
|
|
pub use ::E::*; //~ ERROR enum is private and its variants cannot be re-exported
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
2015-11-23 18:36:12 -06:00
|
|
|
|
|
|
|
enum E { V }
|
|
|
|
|
2016-06-10 15:30:05 -05:00
|
|
|
fn main() {}
|