]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-unsized.rs
Rollup merge of #99401 - TaKO8Ki:avoid-symbol-to-&str-conversions, r=nnethercote
[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() {}