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