rust/tests/ui/union/union-unsized.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

17 lines
258 B
Rust

union U {
a: str,
//~^ ERROR the size for values of type
//~| ERROR field must implement `Copy`
b: u8,
}
union W {
a: u8,
b: str,
//~^ ERROR the size for values of type
//~| ERROR field must implement `Copy`
}
fn main() {}