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