mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
17 lines
258 B
Rust
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() {}
|