fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.7 KiB78 linesraw
1error: unused import: `std::fmt::{}`
2  --> $DIR/lint-unused-imports.rs:8:5
3   |
4LL | use std::fmt::{};
5   |     ^^^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/lint-unused-imports.rs:1:9
9   |
10LL | #![deny(unused_imports)]
11   |         ^^^^^^^^^^^^^^
12
13error: unused imports: `None`, `Some`
14  --> $DIR/lint-unused-imports.rs:12:27
15   |
16LL | use std::option::Option::{Some, None};
17   |                           ^^^^  ^^^^
18
19error: unused import: `test::A`
20  --> $DIR/lint-unused-imports.rs:15:5
21   |
22LL | use test::A;
23   |     ^^^^^^^
24
25error: unused import: `bar`
26  --> $DIR/lint-unused-imports.rs:24:18
27   |
28LL | use test2::{foo, bar};
29   |                  ^^^
30
31error: unused import: `foo::Square`
32  --> $DIR/lint-unused-imports.rs:52:13
33   |
34LL |         use foo::Square;
35   |             ^^^^^^^^^^^
36
37error: the item `g` is imported redundantly
38  --> $DIR/lint-unused-imports.rs:68:9
39   |
40LL | / fn g() {
41LL | |     use self::g;
42   | |         ^^^^^^^
43LL | |
44LL | |     fn f() {
45LL | |         self::g();
46LL | |     }
47LL | | }
48   | |_- the item `g` is already defined here
49
50error: unused import: `self::g`
51  --> $DIR/lint-unused-imports.rs:68:9
52   |
53LL |     use self::g;
54   |         ^^^^^^^
55
56error: the item `foo` is imported redundantly
57  --> $DIR/lint-unused-imports.rs:78:9
58   |
59LL | use test2::{foo, bar};
60   |             --- the item `foo` is already imported here
61...
62LL |     use test2::foo;
63   |         ^^^^^^^^^^
64
65error: unused import: `test2::foo`
66  --> $DIR/lint-unused-imports.rs:78:9
67   |
68LL |     use test2::foo;
69   |         ^^^^^^^^^^
70
71error: unused import: `test::B2`
72  --> $DIR/lint-unused-imports.rs:20:5
73   |
74LL | use test::B2;
75   |     ^^^^^^^^
76
77error: aborting due to 10 previous errors
78