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-double-superkind.rs:6:24
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | impl <T: Sync+'static> Foo for (T,) { }
|
2019-12-26 13:43:33 +01:00
|
|
|
| ^^^ `T` cannot be sent between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: within `(T,)`, the trait `std::marker::Send` is not implemented for `T`
|
|
|
|
= note: required because it appears within the type `(T,)`
|
2020-03-13 19:28:14 -07:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
|
|
|
LL | impl <T: Sync+'static + std::marker::Send> Foo for (T,) { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0277]: `T` cannot be shared between threads safely
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/builtin-superkinds-double-superkind.rs:9:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | impl <T: Send> Foo for (T,T) { }
|
2019-12-26 13:43:33 +01:00
|
|
|
| ^^^ `T` cannot be shared between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: within `(T, T)`, the trait `std::marker::Sync` is not implemented for `T`
|
|
|
|
= note: required because it appears within the type `(T, T)`
|
2020-03-13 19:28:14 -07:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
|
|
|
LL | impl <T: Send + std::marker::Sync> Foo for (T,T) { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|