2017-08-06 18:49:33 +02:00
|
|
|
error: field is never used: `c`
|
|
|
|
|
--> $DIR/union-fields.rs:16:5
|
2017-07-22 01:17:53 +02:00
|
|
|
|
|
2017-08-06 18:49:33 +02:00
|
|
|
16 | c: u8, // should be reported
|
|
|
|
|
| ^^^^^
|
2017-07-22 01:17:53 +02:00
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
|
--> $DIR/union-fields.rs:11:9
|
|
|
|
|
|
|
|
|
|
|
11 | #![deny(dead_code)]
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2017-08-06 18:49:33 +02:00
|
|
|
error: field is never used: `a`
|
|
|
|
|
--> $DIR/union-fields.rs:19:5
|
|
|
|
|
|
|
|
|
|
|
19 | a: u8, // should be reported
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
error: field is never used: `a`
|
|
|
|
|
--> $DIR/union-fields.rs:23:20
|
|
|
|
|
|
|
|
|
|
|
23 | union NoDropLike { a: u8 } // should be reported as unused
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2017-07-22 01:17:53 +02:00
|
|
|
|