// except according to those terms.
mod m1 {
- pub use ::E::V; //~ ERROR variant `V` is private, and cannot be reexported
+ pub use ::E::V; //~ ERROR variant `V` is private and cannot be reexported
}
mod m2 {
- pub use ::E::{V}; //~ ERROR variant `V` is private, and cannot be reexported
+ pub use ::E::{V}; //~ ERROR variant `V` is private and cannot be reexported
}
mod m3 {
- pub use ::E::V::{self}; //~ ERROR variant `V` is private, and cannot be reexported
+ pub use ::E::V::{self}; //~ ERROR variant `V` is private and cannot be reexported
}
mod m4 {
- pub use ::E::*; //~ ERROR variant `V` is private, and cannot be reexported
+ pub use ::E::*; //~ ERROR enum is private and its variants cannot be reexported
}
enum E { V }