granite-rust/src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr

21 lines
878 B
Text
Raw Normal View History

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> { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely
|
::: $DIR/auxiliary/trait_superkinds_in_metadata.rs:7:58
|
LL | pub trait RequiresRequiresShareAndSend : RequiresShare + Send { }
| ---- required by this bound in `RequiresRequiresShareAndSend`
2018-08-08 14:28:26 +02:00
|
= note: required because it appears within the type `X<T>`
help: consider further restricting this bound
|
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`.