PS C:\Users\rivers\Desktop\example> cargo build Compiling example v0.1.0 (C:\Users\rivers\Desktop\example) error[E0277]: the trait bound `T: Clone` is not satisfied --> src\main.rs:9:10 | 9 | impl <T> MustBeClone for CloneByPtr<T> where T:MayNotClone{} | ^^^^^^^^^^^ the trait `Clone` is not implemented for `T` | note: required because of the requirements on the impl of `Clone` for `CloneByPtr<T>` --> src\main.rs:4:10 | 4 | #[derive(Clone)] | ^^^^^ note: required by a bound in `MustBeClone` --> src\main.rs:8:20 | 8 | trait MustBeClone: Clone {} | ^^^^^ required by this bound in `MustBeClone` = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider further restricting this bound | 9 | impl <T> MustBeClone for CloneByPtr<T> where T:MayNotClone + std::clone::Clone{} | +++++++++++++++++++
For more information about this error, try `rustc --explain E0277`. error: could not compile `example` due to previous error