]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/dead-code/tuple-struct-field.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / lint / dead-code / tuple-struct-field.stderr
CommitLineData
064997fb
FG
1error: field `1` is never read
2 --> $DIR/tuple-struct-field.rs:8:26
3 |
4LL | struct SingleUnused(i32, [u8; LEN], String);
5 | ------------ ^^^^^^^^^
6 | |
7 | field in this struct
8 |
9note: the lint level is defined here
10 --> $DIR/tuple-struct-field.rs:1:9
11 |
12LL | #![deny(unused_tuple_struct_fields)]
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
14help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
15 |
16LL | struct SingleUnused(i32, (), String);
17 | ~~
18
19error: fields `0`, `1`, `2` and `3` are never read
20 --> $DIR/tuple-struct-field.rs:13:23
21 |
22LL | struct MultipleUnused(i32, f32, String, u8);
23 | -------------- ^^^ ^^^ ^^^^^^ ^^
24 | |
25 | fields in this struct
26 |
27help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
28 |
29LL | struct MultipleUnused((), (), (), ());
30 | ~~ ~~ ~~ ~~
31
32error: aborting due to 2 previous errors
33