1 error[E0599]: no method named `clone` found for type `std::boxed::Box<dyn Foo>` in the current scope
2 --> $DIR/unique-object-noncopyable.rs:24:16
4 LL | let _z = y.clone();
7 = note: the method `clone` exists but the following trait bounds were not satisfied:
8 `std::boxed::Box<dyn Foo> : std::clone::Clone`
9 = help: items from traits can only be used if the trait is implemented and in scope
10 = note: the following trait defines an item `clone`, perhaps you need to implement it:
11 candidate #1: `std::clone::Clone`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0599`.