Files
rust/tests/ui/lint/unused/lint-unused-imports.stderr

57 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-12-09 17:40:49 +01:00
error: unused import: `std::fmt::{}`
--> $DIR/lint-unused-imports.rs:8:5
2018-08-08 14:28:26 +02:00
|
LL | use std::fmt::{};
| ^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/lint-unused-imports.rs:1:9
2018-08-08 14:28:26 +02:00
|
LL | #![deny(unused_imports)]
| ^^^^^^^^^^^^^^
2024-04-15 18:07:22 +00:00
error: unused imports: `None` and `Some`
2018-12-25 08:56:47 -07:00
--> $DIR/lint-unused-imports.rs:12:27
2018-08-08 14:28:26 +02:00
|
LL | use std::option::Option::{Some, None};
| ^^^^ ^^^^
2018-08-08 14:28:26 +02:00
error: unused import: `test::A`
2018-12-25 08:56:47 -07:00
--> $DIR/lint-unused-imports.rs:15:5
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | use test::A;
| ^^^^^^^
2018-08-08 14:28:26 +02:00
error: unused import: `bar`
2018-12-25 08:56:47 -07:00
--> $DIR/lint-unused-imports.rs:24:18
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | use test2::{foo, bar};
| ^^^
2018-08-08 14:28:26 +02:00
error: unused import: `foo::Square`
2018-12-25 08:56:47 -07:00
--> $DIR/lint-unused-imports.rs:52:13
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | use foo::Square;
| ^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: unused import: `self::g`
2018-12-25 08:56:47 -07:00
--> $DIR/lint-unused-imports.rs:68:9
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | use self::g;
| ^^^^^^^
2018-08-08 14:28:26 +02:00
error: unused import: `test2::foo`
--> $DIR/lint-unused-imports.rs:77:9
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | use test2::foo;
| ^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: unused import: `test::B2`
2018-12-25 08:56:47 -07:00
--> $DIR/lint-unused-imports.rs:20:5
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | use test::B2;
2018-08-08 14:28:26 +02:00
| ^^^^^^^^
error: aborting due to 8 previous errors
2018-08-08 14:28:26 +02:00