fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0599]: no method named `clone` found for struct `issue_69725::Struct<A>` in the current scope 2 --> $DIR/issue-69725.rs:7:32 3 | 4LL | let _ = Struct::<A>::new().clone(); 5 | ^^^^^ method not found in `issue_69725::Struct<A>` 6 | 7 ::: $DIR/auxiliary/issue-69725.rs:2:1 8 | 9LL | pub struct Struct<A>(A); 10 | ------------------------ doesn't satisfy `issue_69725::Struct<A>: std::clone::Clone` 11 | 12 ::: $SRC_DIR/libcore/clone.rs:LL:COL 13 | 14LL | fn clone(&self) -> Self; 15 | ----- 16 | | 17 | the method is available for `std::sync::Arc<issue_69725::Struct<A>>` here 18 | the method is available for `std::rc::Rc<issue_69725::Struct<A>>` here 19 | 20 = note: the method `clone` exists but the following trait bounds were not satisfied: 21 `A: std::clone::Clone` 22 which is required by `issue_69725::Struct<A>: std::clone::Clone` 23 24error: aborting due to previous error 25 26For more information about this error, try `rustc --explain E0599`.