rust/tests/ui/union/union-fields-1.mirunsafeck.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
793 B
Plaintext
Raw Normal View History

error: field `c` is never read
--> $DIR/union-fields-1.rs:9:5
2017-07-21 18:17:53 -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
--> $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
| ^^^^^^^^^
error: field `a` is never read
--> $DIR/union-fields-1.rs:12:5
2017-08-06 11:49:33 -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
error: field `a` is never read
--> $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
| ---------- ^
| |
| field in this union
2017-08-06 11:49:33 -05:00
error: field `c` is never read
--> $DIR/union-fields-1.rs:21:5
2017-08-06 13:46:32 -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