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