]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-69725.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-69725.stderr
CommitLineData
5869c6ff 1error[E0599]: the method `clone` exists for struct `Struct<A>`, but its trait bounds were not satisfied
74b04a01
XL
2 --> $DIR/issue-69725.rs:7:32
3 |
4LL | let _ = Struct::<A>::new().clone();
5869c6ff 5 | ^^^^^ method cannot be called on `Struct<A>` due to unsatisfied trait bounds
74b04a01
XL
6 |
7 ::: $DIR/auxiliary/issue-69725.rs:2:1
8 |
9LL | pub struct Struct<A>(A);
1b1a35ee 10 | ------------------------ doesn't satisfy `Struct<A>: Clone`
ba9703b0 11 |
3dfed10e 12 ::: $SRC_DIR/core/src/clone.rs:LL:COL
ba9703b0
XL
13 |
14LL | fn clone(&self) -> Self;
15 | -----
16 | |
1b1a35ee
XL
17 | the method is available for `Arc<Struct<A>>` here
18 | the method is available for `Rc<Struct<A>>` here
74b04a01 19 |
5869c6ff 20 = note: the following trait bounds were not satisfied:
1b1a35ee
XL
21 `A: Clone`
22 which is required by `Struct<A>: Clone`
74b04a01
XL
23
24error: aborting due to previous error
25
26For more information about this error, try `rustc --explain E0599`.