]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-unsized.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[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() {}