fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: the trait bound `U1: std::marker::Copy` is not satisfied 2 --> $DIR/union-derive-clone.rs:5:10 3 | 4LL | #[derive(Clone)] 5 | ^^^^^ the trait `std::marker::Copy` is not implemented for `U1` 6 | 7 ::: $SRC_DIR/libcore/clone.rs:LL:COL 8 | 9LL | pub struct AssertParamIsCopy<T: Copy + ?Sized> { 10 | ---- required by this bound in `std::clone::AssertParamIsCopy` 11 | 12 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) 13 14error[E0599]: no method named `clone` found for union `U5<CloneNoCopy>` in the current scope 15 --> $DIR/union-derive-clone.rs:37:15 16 | 17LL | union U5<T> { 18 | ----------- 19 | | 20 | method `clone` not found for this 21 | doesn't satisfy `U5<CloneNoCopy>: std::clone::Clone` 22... 23LL | struct CloneNoCopy; 24 | ------------------- doesn't satisfy `CloneNoCopy: std::marker::Copy` 25... 26LL | let w = u.clone(); 27 | ^^^^^ method not found in `U5<CloneNoCopy>` 28 | 29 ::: $SRC_DIR/libcore/clone.rs:LL:COL 30 | 31LL | fn clone(&self) -> Self; 32 | ----- 33 | | 34 | the method is available for `std::sync::Arc<U5<CloneNoCopy>>` here 35 | the method is available for `std::rc::Rc<U5<CloneNoCopy>>` here 36 | 37 = note: the method `clone` exists but the following trait bounds were not satisfied: 38 `CloneNoCopy: std::marker::Copy` 39 which is required by `U5<CloneNoCopy>: std::clone::Clone` 40 41error: aborting due to 2 previous errors 42 43Some errors have detailed explanations: E0277, E0599. 44For more information about an error, try `rustc --explain E0277`.