2018-08-08 14:28:26 +02:00
|
|
|
error[E0277]: `T` cannot be sent between threads safely
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/builtin-superkinds-in-metadata.rs:13:23
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | impl <T:Sync+'static> RequiresRequiresShareAndSend for X<T> { }
|
2019-12-26 13:43:33 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely
|
2020-03-06 16:24:08 -08:00
|
|
|
|
|
|
|
|
::: $DIR/auxiliary/trait_superkinds_in_metadata.rs:7:58
|
|
|
|
|
|
|
|
|
LL | pub trait RequiresRequiresShareAndSend : RequiresShare + Send { }
|
2020-09-02 10:40:56 +03:00
|
|
|
| ---- required by this bound in `RequiresRequiresShareAndSend`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: required because it appears within the type `X<T>`
|
2020-03-13 19:28:14 -07:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
LL | impl <T:Sync+'static + Send> RequiresRequiresShareAndSend for X<T> { }
|
|
|
|
| ^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|