]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-69725.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-69725.stderr
CommitLineData
74b04a01
XL
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`
ba9703b0
XL
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
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
24error: aborting due to previous error
25
26For more information about this error, try `rustc --explain E0599`.