]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/private-variant-reexport.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[rust.git] / src / test / ui / privacy / private-variant-reexport.rs
1 mod m1 {
2     pub use ::E::V; //~ ERROR `V` is private, and cannot be re-exported
3 }
4
5 mod m2 {
6     pub use ::E::{V}; //~ ERROR `V` is private, and cannot be re-exported
7 }
8
9 mod m3 {
10     pub use ::E::V::{self}; //~ ERROR `V` is private, and cannot be re-exported
11 }
12
13 #[deny(unused_imports)]
14 mod m4 {
15     pub use ::E::*; //~ ERROR glob import doesn't reexport anything
16 }
17
18 enum E { V }
19
20 fn main() {}