2018-08-08 12:28:26 +00:00
|
|
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
2020-01-25 20:30:19 +00:00
|
|
|
--> $DIR/coherence-impls-send.rs:16:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl Send for (MyType, MyType) {}
|
2019-10-12 21:31:23 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^----------------
|
|
|
|
| | |
|
2019-10-24 00:06:01 +00:00
|
|
|
| | this is not defined in the current crate because tuples are always foreign
|
2019-10-12 21:31:23 +00:00
|
|
|
| impl doesn't use only types from inside the current crate
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `&'static NotSync`
|
2020-01-25 20:30:19 +00:00
|
|
|
--> $DIR/coherence-impls-send.rs:19:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl Send for &'static NotSync {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
|
|
|
|
|
|
|
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
2020-01-25 20:30:19 +00:00
|
|
|
--> $DIR/coherence-impls-send.rs:22:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl Send for [MyType] {}
|
2019-10-12 21:31:23 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^--------
|
|
|
|
| | |
|
2019-10-24 00:06:01 +00:00
|
|
|
| | this is not defined in the current crate because slices are always foreign
|
2019-10-12 21:31:23 +00:00
|
|
|
| impl doesn't use only types from inside the current crate
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
|
|
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
2020-01-25 20:30:19 +00:00
|
|
|
--> $DIR/coherence-impls-send.rs:25:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl Send for &'static [NotSync] {}
|
2019-10-12 21:31:23 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^------------------
|
|
|
|
| | |
|
2019-10-24 00:06:01 +00:00
|
|
|
| | this is not defined in the current crate because slices are always foreign
|
2019-10-12 21:31:23 +00:00
|
|
|
| impl doesn't use only types from inside the current crate
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
2021-10-21 13:36:35 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2021-10-21 13:36:35 +00:00
|
|
|
Some errors have detailed explanations: E0117, E0321.
|
2018-08-08 12:28:26 +00:00
|
|
|
For more information about an error, try `rustc --explain E0117`.
|