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