2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
|
2023-10-26 16:13:20 +00:00
|
|
|
--> $DIR/union-generic.rs:8:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let u = U { a: Rc::new(0u32) };
|
2020-09-02 07:40:56 +00:00
|
|
|
| ^ the trait `Copy` is not implemented for `Rc<u32>`
|
2021-07-17 18:13:50 +00:00
|
|
|
|
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `U`
|
2023-10-26 16:13:20 +00:00
|
|
|
--> $DIR/union-generic.rs:3:12
|
2021-07-17 18:13:50 +00:00
|
|
|
|
|
|
|
|
LL | union U<T: Copy> {
|
2021-10-05 23:04:09 +00:00
|
|
|
| ^^^^ required by this bound in `U`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
|
2023-10-26 16:13:20 +00:00
|
|
|
--> $DIR/union-generic.rs:10:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let u = U::<Rc<u32>> { a: Default::default() };
|
2022-08-17 04:57:17 +00:00
|
|
|
| ^^^^^^^ the trait `Copy` is not implemented for `Rc<u32>`
|
2021-07-17 18:13:50 +00:00
|
|
|
|
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `U`
|
2023-10-26 16:13:20 +00:00
|
|
|
--> $DIR/union-generic.rs:3:12
|
2021-07-17 18:13:50 +00:00
|
|
|
|
|
|
|
|
LL | union U<T: Copy> {
|
2021-10-05 23:04:09 +00:00
|
|
|
| ^^^^ required by this bound in `U`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|