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