fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
793 B42 linesraw
1error: field `c` is never read
2  --> $DIR/union-fields-1.rs:9:5
3   |
4LL | union U1 {
5   |       -- field in this union
6...
7LL |     c: u8,
8   |     ^
9   |
10note: the lint level is defined here
11  --> $DIR/union-fields-1.rs:4:9
12   |
13LL | #![deny(dead_code)]
14   |         ^^^^^^^^^
15
16error: field `a` is never read
17  --> $DIR/union-fields-1.rs:12:5
18   |
19LL | union U2 {
20   |       -- field in this union
21LL |     a: u8,
22   |     ^
23
24error: field `a` is never read
25  --> $DIR/union-fields-1.rs:16:20
26   |
27LL | union NoDropLike { a: u8 }
28   |       ----------   ^
29   |       |
30   |       field in this union
31
32error: field `c` is never read
33  --> $DIR/union-fields-1.rs:21:5
34   |
35LL | union U {
36   |       - field in this union
37...
38LL |     c: u8,
39   |     ^
40
41error: aborting due to 4 previous errors
42