#[lang = "sized"] pub trait Sized {} pub trait Copy {} pub trait Clone { fn clone(&self) -> Self; } struct PhantomData; pub struct AssertParamIsCopy { _field: PhantomData, } #[derive(Clone)] // { dg-error "bounds not satisfied for U .Copy. is not satisfied" } union U { i: i32, f: f64, }