2022-06-09 22:14:24 -05:00
|
|
|
error: field `c` is never read
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-fields-1.rs:9:5
|
2017-07-21 18:17:53 -05:00
|
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
LL | union U1 {
|
|
|
|
| -- field in this union
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | c: u8,
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^
|
2017-07-21 18:17:53 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-fields-1.rs:4:9
|
2017-07-21 18:17:53 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![deny(dead_code)]
|
2017-07-21 18:17:53 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
error: field `a` is never read
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-fields-1.rs:12:5
|
2017-08-06 11:49:33 -05:00
|
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
LL | union U2 {
|
|
|
|
| -- field in this union
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | a: u8,
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^
|
2017-08-06 11:49:33 -05:00
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
error: field `a` is never read
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-fields-1.rs:16:20
|
2017-08-06 11:49:33 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | union NoDropLike { a: u8 }
|
2022-06-22 13:33:59 -05:00
|
|
|
| ---------- ^
|
2022-06-09 22:14:24 -05:00
|
|
|
| |
|
|
|
|
| field in this union
|
2017-08-06 11:49:33 -05:00
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
error: field `c` is never read
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-fields-1.rs:21:5
|
2017-08-06 13:46:32 -05:00
|
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
LL | union U {
|
|
|
|
| - field in this union
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | c: u8,
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^
|
2017-08-06 13:46:32 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2017-07-21 18:17:53 -05:00
|
|
|
|