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   |
10  ::: $SRC_DIR/alloc/src/boxed.rs:LL:COL
11   |
12LL | / pub struct Box<
13LL | |     T: ?Sized,
14LL | |     #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
15LL | | >(Unique<T>, A);
16   | |________________- doesn't satisfy `Box<R>: Clone`
17   |
18   = note: the following trait bounds were not satisfied:
19           `R: Clone`
20           which is required by `Box<R>: Clone`
21   = help: items from traits can only be used if the trait is implemented and in scope
22   = note: the following trait defines an item `clone`, perhaps you need to implement it:
23           candidate #1: `Clone`
24help: consider annotating `R` with `#[derive(Clone)]`
25   |
26LL | #[derive(Clone)]
27   |
28
29error: aborting due to previous error
30
31For more information about this error, try `rustc --explain E0599`.
32