1 error[E0206]: the trait `Copy` may not be implemented for this type
4 LL | impl Copy for Foo { }
5 | ^^^ type is not a structure or enumeration
7 error[E0206]: the trait `Copy` may not be implemented for this type
8 --> $DIR/E0206.rs:10:15
10 LL | impl Copy for &'static mut Bar { }
11 | ^^^^^^^^^^^^^^^^ type is not a structure or enumeration
13 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
16 LL | impl Copy for Foo { }
19 | | this is not defined in the current crate because arrays are always foreign
20 | impl doesn't use only types from inside the current crate
22 = note: define and implement a trait or new type instead
24 error: aborting due to 3 previous errors
26 Some errors have detailed explanations: E0117, E0206.
27 For more information about an error, try `rustc --explain E0117`.