2015-12-13 12:57:07 -06:00
|
|
|
mod m1 {
|
2021-11-05 14:43:55 -05:00
|
|
|
pub use ::E::V; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod m2 {
|
2021-11-05 14:43:55 -05:00
|
|
|
pub use ::E::{V}; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod m3 {
|
2021-11-05 14:43:55 -05:00
|
|
|
pub use ::E::V::{self}; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
|
|
|
|
2021-01-06 09:07:47 -06:00
|
|
|
#[deny(unused_imports)]
|
2015-12-13 12:57:07 -06:00
|
|
|
mod m4 {
|
2021-01-06 09:07:47 -06:00
|
|
|
pub use ::E::*; //~ ERROR glob import doesn't reexport anything
|
2015-12-13 12:57:07 -06:00
|
|
|
}
|
2015-11-23 18:36:12 -06:00
|
|
|
|
|
|
|
enum E { V }
|
|
|
|
|
2016-06-10 15:30:05 -05:00
|
|
|
fn main() {}
|