]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/tuple-struct-field.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / lint / dead-code / tuple-struct-field.stderr
1 error: field `1` is never read
2   --> $DIR/tuple-struct-field.rs:8:26
3    |
4 LL | struct SingleUnused(i32, [u8; LEN], String);
5    |        ------------      ^^^^^^^^^
6    |        |
7    |        field in this struct
8    |
9 note: the lint level is defined here
10   --> $DIR/tuple-struct-field.rs:1:9
11    |
12 LL | #![deny(unused_tuple_struct_fields)]
13    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
14 help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
15    |
16 LL | struct SingleUnused(i32, (), String);
17    |                          ~~
18
19 error: fields `0`, `1`, `2`, and `3` are never read
20   --> $DIR/tuple-struct-field.rs:13:23
21    |
22 LL | struct MultipleUnused(i32, f32, String, u8);
23    |        -------------- ^^^  ^^^  ^^^^^^  ^^
24    |        |
25    |        fields in this struct
26    |
27 help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
28    |
29 LL | struct MultipleUnused((), (), (), ());
30    |                       ~~  ~~  ~~  ~~
31
32 error: aborting due to 2 previous errors
33