1 error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `i32`:
2 --> $DIR/coherence-impls-copy.rs:8:1
4 LL | impl Copy for i32 {}
7 = note: conflicting implementation in crate `core`:
8 - impl std::marker::Copy for i32;
10 error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&NotSync`:
11 --> $DIR/coherence-impls-copy.rs:37:1
13 LL | impl Copy for &'static NotSync {}
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: conflicting implementation in crate `core`:
17 - impl<T> std::marker::Copy for &T
20 error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&[NotSync]`:
21 --> $DIR/coherence-impls-copy.rs:45:1
23 LL | impl Copy for &'static [NotSync] {}
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 = note: conflicting implementation in crate `core`:
27 - impl<T> std::marker::Copy for &T
30 error[E0206]: the trait `Copy` may not be implemented for this type
31 --> $DIR/coherence-impls-copy.rs:27:15
33 LL | impl Copy for &'static mut MyType {}
34 | ^^^^^^^^^^^^^^^^^^^ type is not a structure or enumeration
36 error[E0206]: the trait `Copy` may not be implemented for this type
37 --> $DIR/coherence-impls-copy.rs:32:15
39 LL | impl Copy for (MyType, MyType) {}
40 | ^^^^^^^^^^^^^^^^ type is not a structure or enumeration
42 error[E0206]: the trait `Copy` may not be implemented for this type
43 --> $DIR/coherence-impls-copy.rs:40:15
45 LL | impl Copy for [MyType] {}
46 | ^^^^^^^^ type is not a structure or enumeration
48 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
49 --> $DIR/coherence-impls-copy.rs:8:1
51 LL | impl Copy for i32 {}
52 | ^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
54 = note: the impl does not reference only types defined in this crate
55 = note: define and implement a trait or new type instead
57 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
58 --> $DIR/coherence-impls-copy.rs:32:1
60 LL | impl Copy for (MyType, MyType) {}
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
63 = note: the impl does not reference only types defined in this crate
64 = note: define and implement a trait or new type instead
66 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
67 --> $DIR/coherence-impls-copy.rs:40:1
69 LL | impl Copy for [MyType] {}
70 | ^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
72 = note: the impl does not reference only types defined in this crate
73 = note: define and implement a trait or new type instead
75 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
76 --> $DIR/coherence-impls-copy.rs:45:1
78 LL | impl Copy for &'static [NotSync] {}
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
81 = note: the impl does not reference only types defined in this crate
82 = note: define and implement a trait or new type instead
84 error: aborting due to 10 previous errors
86 Some errors occurred: E0117, E0119, E0206.
87 For more information about an error, try `rustc --explain E0117`.