rust/tests/ui/privacy/private-variant-reexport.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
480 B
Rust
Raw Normal View History

mod m1 {
pub use ::E::V; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
}
mod m2 {
pub use ::E::{V}; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
}
mod m3 {
pub use ::E::V::{self}; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
}
#[deny(unused_imports)]
mod m4 {
pub use ::E::*; //~ ERROR glob import doesn't reexport anything
}
2015-11-23 18:36:12 -06:00
enum E { V }
fn main() {}