summary refs log tree commit diff
path: root/src/test/ui/privacy/private-variant-reexport.rs
blob: ce1b0d321ca5038b646884f5e9134a0577416274 (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 private, and cannot be re-exported
}

mod m2 {
    pub use ::E::{V}; //~ ERROR `V` is private, and cannot be re-exported
}

mod m3 {
    pub use ::E::V::{self}; //~ ERROR `V` is private, and cannot be re-exported
}

#[deny(unused_imports)]
mod m4 {
    pub use ::E::*; //~ ERROR glob import doesn't reexport anything
}

enum E { V }

fn main() {}