1 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
2 --> $DIR/coherence-impls-copy.rs:5:1
4 LL | impl Copy for i32 {}
7 | | `i32` is not defined in the current crate
8 | impl doesn't use only types from inside the current crate
10 = note: define and implement a trait or new type instead
12 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
13 --> $DIR/coherence-impls-copy.rs:25:1
15 LL | impl Copy for (MyType, MyType) {}
16 | ^^^^^^^^^^^^^^----------------
18 | | this is not defined in the current crate because tuples are always foreign
19 | impl doesn't use only types from inside the current crate
21 = note: define and implement a trait or new type instead
23 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
24 --> $DIR/coherence-impls-copy.rs:30:1
26 LL | impl Copy for [MyType] {}
27 | ^^^^^^^^^^^^^^--------
29 | | this is not defined in the current crate because slices are always foreign
30 | impl doesn't use only types from inside the current crate
32 = note: define and implement a trait or new type instead
34 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
35 --> $DIR/coherence-impls-copy.rs:33:1
37 LL | impl Copy for &'static [NotSync] {}
38 | ^^^^^^^^^^^^^^------------------
40 | | this is not defined in the current crate because slices are always foreign
41 | impl doesn't use only types from inside the current crate
43 = note: define and implement a trait or new type instead
45 error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&NotSync`
46 --> $DIR/coherence-impls-copy.rs:28:1
48 LL | impl Copy for &'static NotSync {}
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 = note: conflicting implementation in crate `core`:
55 error[E0206]: the trait `Copy` may not be implemented for this type
56 --> $DIR/coherence-impls-copy.rs:21:15
58 LL | impl Copy for &'static mut MyType {}
59 | ^^^^^^^^^^^^^^^^^^^ type is not a structure or enumeration
61 error[E0206]: the trait `Copy` may not be implemented for this type
62 --> $DIR/coherence-impls-copy.rs:25:15
64 LL | impl Copy for (MyType, MyType) {}
65 | ^^^^^^^^^^^^^^^^ type is not a structure or enumeration
67 error[E0206]: the trait `Copy` may not be implemented for this type
68 --> $DIR/coherence-impls-copy.rs:30:15
70 LL | impl Copy for [MyType] {}
71 | ^^^^^^^^ type is not a structure or enumeration
73 error: aborting due to 8 previous errors
75 Some errors have detailed explanations: E0117, E0119, E0206.
76 For more information about an error, try `rustc --explain E0117`.