fork/rust

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

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

master
2.3 KiB78 linesraw
1error: anonymous unions are not allowed outside of unnamed struct or union fields
2  --> $DIR/restrict_anonymous_unions.rs:5:12
3   |
4LL |     field: union { field: u8 },
5   |            ^^^^^^^^^^^^^^^^^^^ anonymous union declared here
6
7error: unnamed fields can only have struct or union types
8  --> $DIR/restrict_anonymous_unions.rs:12:5
9   |
10LL |     _: (u8, u8),
11   |     ^  -------- not a struct or union
12
13error: anonymous unions are not allowed outside of unnamed struct or union fields
14  --> $DIR/restrict_anonymous_unions.rs:16:12
15   |
16LL |     field: union { field: u8 },
17   |            ^^^^^^^^^^^^^^^^^^^ anonymous union declared here
18
19error: unnamed fields can only have struct or union types
20  --> $DIR/restrict_anonymous_unions.rs:23:5
21   |
22LL |     _: (u8, u8),
23   |     ^  -------- not a struct or union
24
25error: unnamed fields are not allowed outside of structs or unions
26  --> $DIR/restrict_anonymous_unions.rs:28:9
27   |
28LL |         _ : union { field: u8 },
29   |         -^^^^^^^^^^^^^^^^^^^^^^
30   |         |
31   |         unnamed field declared here
32
33error: anonymous unions are not allowed outside of unnamed struct or union fields
34  --> $DIR/restrict_anonymous_unions.rs:28:13
35   |
36LL |         _ : union { field: u8 },
37   |             ^^^^^^^^^^^^^^^^^^^ anonymous union declared here
38
39error: unnamed fields are not allowed outside of structs or unions
40  --> $DIR/restrict_anonymous_unions.rs:33:9
41   |
42LL |         _ : u8,
43   |         -^^^^^
44   |         |
45   |         unnamed field declared here
46
47error: anonymous unions are unimplemented
48  --> $DIR/restrict_anonymous_unions.rs:5:12
49   |
50LL |     field: union { field: u8 },
51   |            ^^^^^^^^^^^^^^^^^^^
52
53error: anonymous unions are unimplemented
54  --> $DIR/restrict_anonymous_unions.rs:7:8
55   |
56LL |     _: union { field: u8 },
57   |        ^^^^^^^^^^^^^^^^^^^
58
59error: anonymous unions are unimplemented
60  --> $DIR/restrict_anonymous_unions.rs:16:12
61   |
62LL |     field: union { field: u8 },
63   |            ^^^^^^^^^^^^^^^^^^^
64
65error: anonymous unions are unimplemented
66  --> $DIR/restrict_anonymous_unions.rs:18:8
67   |
68LL |     _: union { field: u8 },
69   |        ^^^^^^^^^^^^^^^^^^^
70
71error: anonymous unions are unimplemented
72  --> $DIR/restrict_anonymous_unions.rs:28:13
73   |
74LL |         _ : union { field: u8 },
75   |             ^^^^^^^^^^^^^^^^^^^
76
77error: aborting due to 12 previous errors
78