You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that replacing the union for an struct works fine.
Result
error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
--> <anon>:6:5
|
6 | pub inner: Union<T>,
| ^^^^^^^^^^^^^^^^^^^ trait `T: std::marker::Copy` not satisfied
|
= help: consider adding a `where T: std::marker::Copy` bound
= note: required because of the requirements on the impl of `std::clone::Clone` for `Union<T>`
= note: required by `std::clone::Clone::clone`