mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
18 lines
261 B
Rust
18 lines
261 B
Rust
// revisions: mirunsafeck thirunsafeck
|
|
// [thirunsafeck]compile-flags: -Z thir-unsafeck
|
|
|
|
union U {
|
|
a: str,
|
|
//~^ ERROR the size for values of type
|
|
|
|
b: u8,
|
|
}
|
|
|
|
union W {
|
|
a: u8,
|
|
b: str,
|
|
//~^ ERROR the size for values of type
|
|
}
|
|
|
|
fn main() {}
|