fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1022 B28 linesraw
1error[E0599]: the method `clone` exists for struct `Box<R>`, but its trait bounds were not satisfied
2  --> $DIR/unique-pinned-nocopy.rs:12:16
3   |
4LL |   struct R {
5   |   -------- doesn't satisfy `R: Clone`
6...
7LL |       let _j = i.clone();
8   |                  ^^^^^ method cannot be called on `Box<R>` due to unsatisfied trait bounds
9  --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
10  ::: $SRC_DIR/alloc/src/boxed.rs:LL:COL
11   |
12   = note: doesn't satisfy `Box<R>: Clone`
13   |
14   = note: the following trait bounds were not satisfied:
15           `R: Clone`
16           which is required by `Box<R>: Clone`
17   = help: items from traits can only be used if the trait is implemented and in scope
18   = note: the following trait defines an item `clone`, perhaps you need to implement it:
19           candidate #1: `Clone`
20help: consider annotating `R` with `#[derive(Clone)]`
21   |
22LL + #[derive(Clone)]
23LL | struct R {
24   |
25
26error: aborting due to previous error
27
28For more information about this error, try `rustc --explain E0599`.