]> git.proxmox.com Git - rustc.git/blob - tests/ui/union/union-unsized.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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() {}