2022-06-09 22:14:24 -05:00
|
|
|
warning: fields `field_1` and `field_2` are never read
|
2021-08-14 19:40:06 -05:00
|
|
|
--> $DIR/issue-87987.rs:5:5
|
|
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
LL | struct Props {
|
|
|
|
| ----- fields in this struct
|
2021-08-14 19:40:06 -05:00
|
|
|
LL | field_1: u32,
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^^^^^^^
|
2021-08-14 19:40:06 -05:00
|
|
|
LL | field_2: u32,
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^^^^^^^
|
2022-06-09 22:14:24 -05:00
|
|
|
|
|
|
|
|
= note: `#[warn(dead_code)]` on by default
|
2021-08-14 19:40:06 -05:00
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
warning: 1 warning emitted
|
2021-08-14 19:40:06 -05:00
|
|
|
|