rust/tests/ui/union/union-unsized.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
261 B
Rust
Raw Normal View History

// revisions: mirunsafeck thirunsafeck
// [thirunsafeck]compile-flags: -Z thir-unsafeck
union U {
a: str,
2018-07-10 21:10:13 +00:00
//~^ ERROR the size for values of type
2018-06-19 22:53:51 +00:00
b: u8,
}
union W {
a: u8,
b: str,
2018-07-10 21:10:13 +00:00
//~^ ERROR the size for values of type
}
fn main() {}