diff options
Diffstat (limited to 'src/test/ui/use/use-nested-groups-unused-imports.rs')
-rw-r--r-- | src/test/ui/use/use-nested-groups-unused-imports.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/use/use-nested-groups-unused-imports.rs b/src/test/ui/use/use-nested-groups-unused-imports.rs deleted file mode 100644 index ca6b8ba94..000000000 --- a/src/test/ui/use/use-nested-groups-unused-imports.rs +++ /dev/null @@ -1,24 +0,0 @@ -#![allow(dead_code)] -#![deny(unused_imports)] - -mod foo { - pub mod bar { - pub mod baz { - pub struct Bar(); - } - pub mod foobar {} - } - - pub struct Foo(); -} - -use foo::{Foo, bar::{baz::{}, foobar::*}, *}; - //~^ ERROR unused imports: `*`, `Foo`, `baz::{}`, `foobar::*` -use foo::bar::baz::{*, *}; - //~^ ERROR unused import: `*` -use foo::{}; - //~^ ERROR unused import: `foo::{}` - -fn main() { - let _: Bar; -} |