1 error[E0599]: the method `clone` exists for union `U5<CloneNoCopy>`, but its trait bounds were not satisfied
2 --> $DIR/union-derive-clone.rs:38:15
7 | method `clone` not found for this
8 | doesn't satisfy `U5<CloneNoCopy>: Clone`
10 LL | struct CloneNoCopy;
11 | ------------------- doesn't satisfy `CloneNoCopy: Copy`
13 LL | let w = u.clone();
14 | ^^^^^ method cannot be called on `U5<CloneNoCopy>` due to unsatisfied trait bounds
16 = note: the following trait bounds were not satisfied:
18 which is required by `U5<CloneNoCopy>: Clone`
20 error[E0277]: the trait bound `U1: Copy` is not satisfied
21 --> $DIR/union-derive-clone.rs:6:10
24 | ^^^^^ the trait `Copy` is not implemented for `U1`
26 note: required by a bound in `AssertParamIsCopy`
27 --> $SRC_DIR/core/src/clone.rs:LL:COL
29 LL | pub struct AssertParamIsCopy<T: Copy + ?Sized> {
30 | ^^^^ required by this bound in `AssertParamIsCopy`
31 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
33 error: aborting due to 2 previous errors
35 Some errors have detailed explanations: E0277, E0599.
36 For more information about an error, try `rustc --explain E0277`.