2022-11-10 04:21:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Copy` for type `&NotSync`
|
2021-05-09 20:53:13 +02:00
|
|
|
--> $DIR/coherence-impls-copy.rs:28:1
|
|
|
|
|
|
|
|
|
|
|
LL | impl Copy for &'static NotSync {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: conflicting implementation in crate `core`:
|
|
|
|
|
- impl<T> Copy for &T
|
|
|
|
|
where T: ?Sized;
|
|
|
|
|
|
2017-12-10 22:47:55 +03:00
|
|
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
2021-05-09 20:53:13 +02:00
|
|
|
--> $DIR/coherence-impls-copy.rs:33:1
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2021-05-09 20:53:13 +02:00
|
|
|
LL | impl Copy for &'static [NotSync] {}
|
|
|
|
|
| ^^^^^^^^^^^^^^------------------
|
2024-09-26 17:10:03 +00:00
|
|
|
| |
|
|
|
|
|
| this is not defined in the current crate because slices are always foreign
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2024-09-26 17:10:03 +00:00
|
|
|
= note: impl doesn't have any local type before any uncovered type parameters
|
|
|
|
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
2017-12-10 22:47:55 +03:00
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
2024-06-07 15:58:05 -04:00
|
|
|
error[E0117]: only traits defined in the current crate can be implemented for primitive types
|
|
|
|
|
--> $DIR/coherence-impls-copy.rs:5:1
|
|
|
|
|
|
|
|
|
|
|
LL | impl Copy for i32 {}
|
|
|
|
|
| ^^^^^^^^^^^^^^---
|
2024-09-26 17:10:03 +00:00
|
|
|
| |
|
|
|
|
|
| `i32` is not defined in the current crate
|
2024-06-07 15:58:05 -04:00
|
|
|
|
|
2024-09-26 17:10:03 +00:00
|
|
|
= note: impl doesn't have any local type before any uncovered type parameters
|
|
|
|
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
2024-06-07 15:58:05 -04:00
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
2024-02-09 09:38:22 +00:00
|
|
|
error[E0206]: the trait `Copy` cannot be implemented for this type
|
|
|
|
|
--> $DIR/coherence-impls-copy.rs:21:15
|
|
|
|
|
|
|
|
|
|
|
LL | impl Copy for &'static mut MyType {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ type is not a structure or enumeration
|
|
|
|
|
|
2017-12-10 22:47:55 +03:00
|
|
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
2021-05-09 20:53:13 +02:00
|
|
|
--> $DIR/coherence-impls-copy.rs:25:1
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2021-05-09 20:53:13 +02:00
|
|
|
LL | impl Copy for (MyType, MyType) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^----------------
|
2024-09-26 17:10:03 +00:00
|
|
|
| |
|
|
|
|
|
| this is not defined in the current crate because tuples are always foreign
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2024-09-26 17:10:03 +00:00
|
|
|
= note: impl doesn't have any local type before any uncovered type parameters
|
|
|
|
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
2017-12-10 22:47:55 +03:00
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
2024-02-09 09:38:22 +00:00
|
|
|
error[E0206]: the trait `Copy` cannot be implemented for this type
|
|
|
|
|
--> $DIR/coherence-impls-copy.rs:25:15
|
|
|
|
|
|
|
|
|
|
|
LL | impl Copy for (MyType, MyType) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^ type is not a structure or enumeration
|
|
|
|
|
|
2017-12-10 22:47:55 +03:00
|
|
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
2021-05-09 20:53:13 +02:00
|
|
|
--> $DIR/coherence-impls-copy.rs:30:1
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2021-05-09 20:53:13 +02:00
|
|
|
LL | impl Copy for [MyType] {}
|
|
|
|
|
| ^^^^^^^^^^^^^^--------
|
2024-09-26 17:10:03 +00:00
|
|
|
| |
|
|
|
|
|
| this is not defined in the current crate because slices are always foreign
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2024-09-26 17:10:03 +00:00
|
|
|
= note: impl doesn't have any local type before any uncovered type parameters
|
|
|
|
|
= note: for more information see https://doc.rust-lang.org/reference/items/implementations.html#orphan-rules
|
2017-12-10 22:47:55 +03:00
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
2023-03-07 23:55:51 +00:00
|
|
|
error[E0206]: the trait `Copy` cannot be implemented for this type
|
2021-10-21 15:36:35 +02:00
|
|
|
--> $DIR/coherence-impls-copy.rs:30:15
|
|
|
|
|
|
|
|
|
|
|
LL | impl Copy for [MyType] {}
|
|
|
|
|
| ^^^^^^^^ type is not a structure or enumeration
|
|
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2017-12-10 22:47:55 +03:00
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0117, E0119, E0206.
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about an error, try `rustc --explain E0117`.
|