fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0599]: no method named `clone` found for struct `std::boxed::Box<R>` in the current scope 2 --> $DIR/unique-pinned-nocopy.rs:12: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 ::: $SRC_DIR/libcore/clone.rs:LL:COL 16 | 17LL | fn clone(&self) -> Self; 18 | ----- 19 | | 20 | the method is available for `std::sync::Arc<std::boxed::Box<R>>` here 21 | the method is available for `std::rc::Rc<std::boxed::Box<R>>` here 22 | 23 = note: the method `clone` exists but the following trait bounds were not satisfied: 24 `R: std::clone::Clone` 25 which is required by `std::boxed::Box<R>: std::clone::Clone` 26 = help: items from traits can only be used if the trait is implemented and in scope 27 = note: the following trait defines an item `clone`, perhaps you need to implement it: 28 candidate #1: `std::clone::Clone` 29 30error: aborting due to previous error 31 32For more information about this error, try `rustc --explain E0599`.