fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `i32`: 2 --> $DIR/coherence-impls-copy.rs:8:1 3 | 4LL | impl Copy for i32 {} 5 | ^^^^^^^^^^^^^^^^^ 6 | 7 = note: conflicting implementation in crate `core`: 8 - impl std::marker::Copy for i32; 9 10error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&NotSync`: 11 --> $DIR/coherence-impls-copy.rs:37:1 12 | 13LL | impl Copy for &'static NotSync {} 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | 16 = note: conflicting implementation in crate `core`: 17 - impl<T> std::marker::Copy for &T 18 where T: ?Sized; 19 20error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&[NotSync]`: 21 --> $DIR/coherence-impls-copy.rs:45:1 22 | 23LL | impl Copy for &'static [NotSync] {} 24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 25 | 26 = note: conflicting implementation in crate `core`: 27 - impl<T> std::marker::Copy for &T 28 where T: ?Sized; 29 30error[E0206]: the trait `Copy` may not be implemented for this type 31 --> $DIR/coherence-impls-copy.rs:27:15 32 | 33LL | impl Copy for &'static mut MyType {} 34 | ^^^^^^^^^^^^^^^^^^^ type is not a structure or enumeration 35 36error[E0206]: the trait `Copy` may not be implemented for this type 37 --> $DIR/coherence-impls-copy.rs:32:15 38 | 39LL | impl Copy for (MyType, MyType) {} 40 | ^^^^^^^^^^^^^^^^ type is not a structure or enumeration 41 42error[E0206]: the trait `Copy` may not be implemented for this type 43 --> $DIR/coherence-impls-copy.rs:40:15 44 | 45LL | impl Copy for [MyType] {} 46 | ^^^^^^^^ type is not a structure or enumeration 47 48error[E0117]: only traits defined in the current crate can be implemented for arbitrary types 49 --> $DIR/coherence-impls-copy.rs:8:1 50 | 51LL | impl Copy for i32 {} 52 | ^^^^^^^^^^^^^^--- 53 | | | 54 | | `i32` is not defined in the current crate 55 | impl doesn't use only types from inside the current crate 56 | 57 = note: define and implement a trait or new type instead 58 59error[E0117]: only traits defined in the current crate can be implemented for arbitrary types 60 --> $DIR/coherence-impls-copy.rs:32:1 61 | 62LL | impl Copy for (MyType, MyType) {} 63 | ^^^^^^^^^^^^^^---------------- 64 | | | 65 | | this is not defined in the current crate because tuples are always foreign 66 | impl doesn't use only types from inside the current crate 67 | 68 = note: define and implement a trait or new type instead 69 70error[E0117]: only traits defined in the current crate can be implemented for arbitrary types 71 --> $DIR/coherence-impls-copy.rs:40:1 72 | 73LL | impl Copy for [MyType] {} 74 | ^^^^^^^^^^^^^^-------- 75 | | | 76 | | this is not defined in the current crate because slices are always foreign 77 | impl doesn't use only types from inside the current crate 78 | 79 = note: define and implement a trait or new type instead 80 81error[E0117]: only traits defined in the current crate can be implemented for arbitrary types 82 --> $DIR/coherence-impls-copy.rs:45:1 83 | 84LL | impl Copy for &'static [NotSync] {} 85 | ^^^^^^^^^^^^^^------------------ 86 | | | 87 | | this is not defined in the current crate because slices are always foreign 88 | impl doesn't use only types from inside the current crate 89 | 90 = note: define and implement a trait or new type instead 91 92error: aborting due to 10 previous errors 93 94Some errors have detailed explanations: E0117, E0119, E0206. 95For more information about an error, try `rustc --explain E0117`.