2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/union-generic.rs:8:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-24 16:44:43 -05:00
|
|
|
LL | union U<T: Copy> {
|
|
|
|
| ---------------- required by `U`
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let u = U { a: Rc::new(0u32) };
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^ the trait `Copy` is not implemented for `Rc<u32>`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/union-generic.rs:10:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-24 16:44:43 -05:00
|
|
|
LL | union U<T: Copy> {
|
|
|
|
| ---------------- required by `U`
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let u = U::<Rc<u32>> { a: Default::default() };
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^^^^^^ the trait `Copy` is not implemented for `Rc<u32>`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|