|
LL | #[derive(Clone)]
| ^^^^^ the trait `std::marker::Copy` is not implemented for `U1`
+ |
+ ::: $SRC_DIR/libcore/clone.rs:LL:COL
+ |
+LL | pub struct AssertParamIsCopy<T: Copy + ?Sized> {
+ | ---- required by this bound in `std::clone::AssertParamIsCopy`
|
- = note: required by `std::clone::AssertParamIsCopy`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `clone` found for union `U5<CloneNoCopy>` in the current scope
...
LL | let w = u.clone();
| ^^^^^ method not found in `U5<CloneNoCopy>`
+ |
+ ::: $SRC_DIR/libcore/clone.rs:LL:COL
+ |
+LL | fn clone(&self) -> Self;
+ | -----
+ | |
+ | the method is available for `std::sync::Arc<U5<CloneNoCopy>>` here
+ | the method is available for `std::rc::Rc<U5<CloneNoCopy>>` here
|
= note: the method `clone` exists but the following trait bounds were not satisfied:
`CloneNoCopy: std::marker::Copy`