mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
25 lines
361 B
Rust
25 lines
361 B
Rust
#![deny(unused_imports)]
|
|
|
|
mod a {}
|
|
|
|
pub use a::*;
|
|
//~^ ERROR: unused import: `a::*`
|
|
|
|
mod b {
|
|
mod c {
|
|
#[derive(Clone)]
|
|
pub struct D;
|
|
}
|
|
pub use self::c::*; // don't show unused import lint
|
|
}
|
|
|
|
pub use b::*; // don't show unused import lint
|
|
|
|
mod d {
|
|
const D: i32 = 1;
|
|
}
|
|
|
|
pub use d::*;
|
|
//~^ ERROR: unused import: `d::*`
|
|
|
|
fn main() {}
|