]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | error[E0599]: no method named `clone` found for struct `issue_69725::Struct<A>` in the current scope |
2 | --> $DIR/issue-69725.rs:7:32 | |
3 | | | |
4 | LL | let _ = Struct::<A>::new().clone(); | |
5 | | ^^^^^ method not found in `issue_69725::Struct<A>` | |
6 | | | |
7 | ::: $DIR/auxiliary/issue-69725.rs:2:1 | |
8 | | | |
9 | LL | pub struct Struct<A>(A); | |
10 | | ------------------------ doesn't satisfy `issue_69725::Struct<A>: std::clone::Clone` | |
ba9703b0 XL |
11 | | |
12 | ::: $SRC_DIR/libcore/clone.rs:LL:COL | |
13 | | | |
14 | LL | 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 | |
74b04a01 XL |
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 | ||
24 | error: aborting due to previous error | |
25 | ||
26 | For more information about this error, try `rustc --explain E0599`. |