]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-unsized.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / union / union-unsized.rs
1 // revisions: mirunsafeck thirunsafeck
2 // [thirunsafeck]compile-flags: -Z thir-unsafeck
3
4 #![feature(untagged_unions)]
5
6 union U {
7     a: str,
8     //~^ ERROR the size for values of type
9
10     b: u8,
11 }
12
13 union W {
14     a: u8,
15     b: str,
16     //~^ ERROR the size for values of type
17 }
18
19 fn main() {}