fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0599]: no method named `clone` found for struct `std::boxed::Box<dyn Foo>` in the current scope 2 --> $DIR/unique-object-noncopyable.rs:28:16 3 | 4LL | trait Foo { 5 | --------- 6 | | 7 | doesn't satisfy `dyn Foo: std::clone::Clone` 8 | doesn't satisfy `dyn Foo: std::marker::Sized` 9... 10LL | let _z = y.clone(); 11 | ^^^^^ method not found in `std::boxed::Box<dyn Foo>` 12 | 13 ::: $SRC_DIR/liballoc/boxed.rs:LL:COL 14 | 15LL | pub struct Box<T: ?Sized>(Unique<T>); 16 | ------------------------------------- doesn't satisfy `std::boxed::Box<dyn Foo>: std::clone::Clone` 17 | 18 = note: the method `clone` exists but the following trait bounds were not satisfied: 19 `dyn Foo: std::marker::Sized` 20 which is required by `std::boxed::Box<dyn Foo>: std::clone::Clone` 21 `dyn Foo: std::clone::Clone` 22 which is required by `std::boxed::Box<dyn Foo>: std::clone::Clone` 23 24error: aborting due to previous error 25 26For more information about this error, try `rustc --explain E0599`.