1 error[E0277]: the trait bound `std::rc::Rc<u32>: std::marker::Copy` is not satisfied
2 --> $DIR/union-generic.rs:18:13
4 LL | let u = U { a: Rc::new(0u32) };
5 | ^ the trait `std::marker::Copy` is not implemented for `std::rc::Rc<u32>`
8 --> $DIR/union-generic.rs:13:1
10 LL | union U<T: Copy> {
13 error[E0277]: the trait bound `std::rc::Rc<u32>: std::marker::Copy` is not satisfied
14 --> $DIR/union-generic.rs:20:13
16 LL | let u = U::<Rc<u32>> { a: Default::default() };
17 | ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::rc::Rc<u32>`
20 --> $DIR/union-generic.rs:13:1
22 LL | union U<T: Copy> {
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0277`.