The following code:
#[derive(Copy)] enum MyEnum { Test }
Is giving me this error: error: the trait core::clone::Clone is not i
core::clone::Clone
This happens because the trait Copy, depends on the trait Clone. The compiler will not try to infer and implement the trait for you. So you must explicitly implement the Clone trait as well.
Copy
Clone
Like that:
#[derive(Copy,Clone)] enum MyEnum { Test }