@@ -94,14 +94,26 @@ LL | Foo(String),
94
94
LL | Bar,
95
95
| --- too many variants in `TooManyVariants`
96
96
97
+ error[E0691]: zero-sized field in transparent enum has alignment larger than 1
98
+ --> $DIR/repr-transparent.rs:65:14
99
+ |
100
+ LL | Foo(u32, [u16; 0]),
101
+ | ^^^^^^^^ has alignment larger than 1
102
+
103
+ error[E0691]: zero-sized field in transparent enum has alignment larger than 1
104
+ --> $DIR/repr-transparent.rs:70:11
105
+ |
106
+ LL | Foo { bar: ZstAlign32<T>, baz: u32 }
107
+ | ^^^^^^^^^^^^^^^^^^ has alignment larger than 1
108
+
97
109
error[E0690]: transparent union needs exactly one non-zero-sized field, but has 0
98
- --> $DIR/repr-transparent.rs:64 :1
110
+ --> $DIR/repr-transparent.rs:74 :1
99
111
|
100
112
LL | union UnitUnion {
101
113
| ^^^^^^^^^^^^^^^ needs exactly one non-zero-sized field, but has 0
102
114
103
115
error[E0690]: transparent union needs exactly one non-zero-sized field, but has 2
104
- --> $DIR/repr-transparent.rs:69 :1
116
+ --> $DIR/repr-transparent.rs:79 :1
105
117
|
106
118
LL | union TooManyFields {
107
119
| ^^^^^^^^^^^^^^^^^^^ needs exactly one non-zero-sized field, but has 2
@@ -110,7 +122,7 @@ LL | u: u32,
110
122
LL | s: i32
111
123
| ------ this field is non-zero-sized
112
124
113
- error: aborting due to 15 previous errors
125
+ error: aborting due to 17 previous errors
114
126
115
127
Some errors have detailed explanations: E0084, E0690, E0691, E0731.
116
128
For more information about an error, try `rustc --explain E0084`.
0 commit comments