2018-01-24 16:32:17 -06:00
|
|
|
#![allow(dead_code)]
|
2017-09-26 16:04:00 -05:00
|
|
|
#![deny(unused_imports)]
|
|
|
|
|
|
|
|
mod foo {
|
2018-01-24 16:32:17 -06:00
|
|
|
pub mod bar {
|
|
|
|
pub mod baz {
|
|
|
|
pub struct Bar();
|
|
|
|
}
|
|
|
|
pub mod foobar {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Foo();
|
2017-09-26 16:04:00 -05:00
|
|
|
}
|
|
|
|
|
2018-01-24 16:32:17 -06:00
|
|
|
use foo::{Foo, bar::{baz::{}, foobar::*}, *};
|
|
|
|
//~^ ERROR unused imports: `*`, `Foo`, `baz::{}`, `foobar::*`
|
|
|
|
use foo::bar::baz::{*, *};
|
|
|
|
//~^ ERROR unused import: `*`
|
|
|
|
use foo::{};
|
2018-12-09 10:40:49 -06:00
|
|
|
//~^ ERROR unused import: `foo::{}`
|
2017-09-26 16:04:00 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _: Bar;
|
|
|
|
}
|