@@ -94,14 +94,26 @@ LL | Foo(String),
9494LL | Bar,
9595 | --- too many variants in `TooManyVariants`
9696
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+
97109error[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
99111 |
100112LL | union UnitUnion {
101113 | ^^^^^^^^^^^^^^^ needs exactly one non-zero-sized field, but has 0
102114
103115error[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
105117 |
106118LL | union TooManyFields {
107119 | ^^^^^^^^^^^^^^^^^^^ needs exactly one non-zero-sized field, but has 2
@@ -110,7 +122,7 @@ LL | u: u32,
110122LL | s: i32
111123 | ------ this field is non-zero-sized
112124
113- error: aborting due to 15 previous errors
125+ error: aborting due to 17 previous errors
114126
115127Some errors have detailed explanations: E0084, E0690, E0691, E0731.
116128For more information about an error, try `rustc --explain E0084`.
0 commit comments