2018-01-24 22:32:17 +00:00
|
|
|
#![allow(dead_code)]
|
2017-09-26 21:04:00 +00:00
|
|
|
#![deny(unused_imports)]
|
|
|
|
|
|
|
|
mod foo {
|
2018-01-24 22:32:17 +00:00
|
|
|
pub mod bar {
|
|
|
|
pub mod baz {
|
|
|
|
pub struct Bar();
|
|
|
|
}
|
|
|
|
pub mod foobar {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Foo();
|
2017-09-26 21:04:00 +00:00
|
|
|
}
|
|
|
|
|
2018-01-24 22:32:17 +00: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 16:40:49 +00:00
|
|
|
//~^ ERROR unused import: `foo::{}`
|
2017-09-26 21:04:00 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _: Bar;
|
|
|
|
}
|