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