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