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