2018-08-08 07:28:26 -05:00
|
|
|
error: unused import: `use std::fmt::{};`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:8:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use std::fmt::{};
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_imports)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused imports: `None`, `Some`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:12:27
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use std::option::Option::{Some, None};
|
|
|
|
| ^^^^ ^^^^
|
|
|
|
|
|
|
|
error: unused import: `test::A`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:15:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use test::A; //~ ERROR unused import: `test::A`
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: unused import: `bar`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:24:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use test2::{foo, bar}; //~ ERROR unused import: `bar`
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: unused import: `foo::Square`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:52:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use foo::Square; //~ ERROR unused import: `foo::Square`
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused import: `self::g`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:68:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use self::g; //~ ERROR unused import: `self::g`
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: unused import: `test2::foo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:77:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use test2::foo; //~ ERROR unused import: `test2::foo`
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused import: `test::B2`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-unused-imports.rs:20:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use test::B2; //~ ERROR unused import: `test::B2`
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|