summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/private-variant-reexport.rs
blob: 6882844602286deef9c7eaa6f6f4bad96c60dc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}

enum E { V }

fn main() {}