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