// revisions: mirunsafeck thirunsafeck // [thirunsafeck]compile-flags: -Z thir-unsafeck use std::rc::Rc; union U { a: T } fn main() { let u = U { a: Rc::new(0u32) }; //~^ ERROR the trait bound `Rc: Copy` is not satisfied let u = U::> { a: Default::default() }; //~^ ERROR the trait bound `Rc: Copy` is not satisfied }