]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/lint-dead-code-4.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / lint / dead-code / lint-dead-code-4.stderr
1 error: field `b` is never read
2   --> $DIR/lint-dead-code-4.rs:7:5
3    |
4 LL | struct Foo {
5    |        --- field in this struct
6 LL |     x: usize,
7 LL |     b: bool,
8    |     ^
9    |
10 note: the lint level is defined here
11   --> $DIR/lint-dead-code-4.rs:3:9
12    |
13 LL | #![deny(dead_code)]
14    |         ^^^^^^^^^
15
16 error: variants `X` and `Y` are never constructed
17   --> $DIR/lint-dead-code-4.rs:15:5
18    |
19 LL | enum XYZ {
20    |      --- variants in this enum
21 LL |     X,
22    |     ^
23 LL |     Y {
24    |     ^
25
26 error: enum `ABC` is never used
27   --> $DIR/lint-dead-code-4.rs:24:6
28    |
29 LL | enum ABC {
30    |      ^^^
31
32 error: fields `b` and `c` are never read
33   --> $DIR/lint-dead-code-4.rs:39:9
34    |
35 LL |     J {
36    |     - fields in this variant
37 LL |         a: String,
38 LL |         b: i32,
39    |         ^
40 LL |         c: i32,
41    |         ^
42
43 error: variants `I` and `K` are never constructed
44   --> $DIR/lint-dead-code-4.rs:36:5
45    |
46 LL | enum IJK {
47    |      --- variants in this enum
48 LL |     I,
49    |     ^
50 ...
51 LL |     K
52    |     ^
53
54 error: fields `x` and `c` are never read
55   --> $DIR/lint-dead-code-4.rs:61:5
56    |
57 LL | struct Bar {
58    |        --- fields in this struct
59 LL |     x: usize,
60    |     ^
61 LL |     b: bool,
62 LL |     c: bool,
63    |     ^
64
65 error: aborting due to 6 previous errors
66