2018-12-09 10:40:49 -06:00
|
|
|
error: unused import: `std::fmt::{}`
|
|
|
|
--> $DIR/lint-unused-imports.rs:8:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use std::fmt::{};
|
2018-12-09 10:40:49 -06:00
|
|
|
| ----^^^^^^^^^^^^- help: remove the whole `use` item
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
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};
|
2018-12-09 10:40:49 -06:00
|
|
|
| --------------------------^^^^--^^^^-- help: remove the whole `use` item
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
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`
|
2018-12-09 10:40:49 -06:00
|
|
|
| ----^^^^^^^- help: remove the whole `use` item
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
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`
|
2018-12-09 10:40:49 -06:00
|
|
|
| --^^^
|
|
|
|
| |
|
|
|
|
| help: remove the unused import
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
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`
|
2018-12-09 10:40:49 -06:00
|
|
|
| ----^^^^^^^^^^^- help: remove the whole `use` item
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
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`
|
2018-12-09 10:40:49 -06:00
|
|
|
| ----^^^^^^^- help: remove the whole `use` item
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
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`
|
2018-12-09 10:40:49 -06:00
|
|
|
| ----^^^^^^^^^^- help: remove the whole `use` item
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|