]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-69725.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-69725.stderr
1 error[E0599]: no method named `clone` found for struct `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 `Struct<A>`
6 |
7 ::: $DIR/auxiliary/issue-69725.rs:2:1
8 |
9 LL | pub struct Struct<A>(A);
10 | ------------------------ doesn't satisfy `Struct<A>: Clone`
11 |
12 ::: $SRC_DIR/core/src/clone.rs:LL:COL
13 |
14 LL | fn clone(&self) -> Self;
15 | -----
16 | |
17 | the method is available for `Arc<Struct<A>>` here
18 | the method is available for `Rc<Struct<A>>` here
19 |
20 = note: the method `clone` exists but the following trait bounds were not satisfied:
21 `A: Clone`
22 which is required by `Struct<A>: Clone`
23
24 error: aborting due to previous error
25
26 For more information about this error, try `rustc --explain E0599`.