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