blob: 8318f96940e93ecffa054407ab17d8a3796ac6d0 [file] [log] [blame]
#![feature(untagged_unions)]
#[derive(Clone)]
union U {
a: u8
}
#[derive(Clone)]
union W {
a: String
}
impl Copy for U {} // OK
impl Copy for W {} //~ ERROR the trait `Copy` may not be implemented for this type
fn main() {}