fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0599]: no method named `clone` found for struct `std::boxed::Box<R>` in the current scope 2 --> $DIR/unique-pinned-nocopy.rs:16:16 3 | 4LL | struct R { 5 | -------- doesn't satisfy `R: std::clone::Clone` 6... 7LL | let _j = i.clone(); 8 | ^^^^^ method not found in `std::boxed::Box<R>` 9 | 10 ::: $SRC_DIR/liballoc/boxed.rs:LL:COL 11 | 12LL | pub struct Box<T: ?Sized>(Unique<T>); 13 | ------------------------------------- doesn't satisfy `std::boxed::Box<R>: std::clone::Clone` 14 | 15 = note: the method `clone` exists but the following trait bounds were not satisfied: 16 `R: std::clone::Clone` 17 which is required by `std::boxed::Box<R>: std::clone::Clone` 18 = help: items from traits can only be used if the trait is implemented and in scope 19 = note: the following trait defines an item `clone`, perhaps you need to implement it: 20 candidate #1: `std::clone::Clone` 21 22error: aborting due to previous error 23 24For more information about this error, try `rustc --explain E0599`.