1 error[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
7 | this trait doesn't satisfy the bound `std::clone::Clone`
8 | this trait doesn't satisfy the bound `std::marker::Sized`
10 LL | let _z = y.clone();
11 | ^^^^^ method not found in `std::boxed::Box<dyn Foo>`
13 ::: $SRC_DIR/liballoc/boxed.rs:LL:COL
15 LL | pub struct Box<T: ?Sized>(Unique<T>);
16 | ------------------------------------- this type doesn't satisfy the bound `std::clone::Clone`
18 = note: the method `clone` exists but the following trait bounds were not satisfied:
19 `dyn Foo: std::clone::Clone`
20 `dyn Foo: std::marker::Sized`
21 `std::boxed::Box<dyn Foo>: std::clone::Clone`
22 = help: items from traits can only be used if the trait is implemented and in scope
23 = note: the following trait defines an item `clone`, perhaps you need to implement it:
24 candidate #1: `std::clone::Clone`
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0599`.