mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
23 lines
524 B
Rust
23 lines
524 B
Rust
mod m1 {
|
|
pub use ::E::V; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
|
|
}
|
|
|
|
mod m2 {
|
|
pub use ::E::{V}; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
|
|
}
|
|
|
|
mod m3 {
|
|
pub use ::E::V::{self}; //~ ERROR `V` is only public within the crate, and cannot be re-exported outside
|
|
}
|
|
|
|
#[deny(unused_imports)]
|
|
mod m4 {
|
|
pub use ::E::*;
|
|
//~^ ERROR glob import doesn't reexport anything
|
|
//~| ERROR unused import: `::E::*`
|
|
}
|
|
|
|
enum E { V }
|
|
|
|
fn main() {}
|