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/bad-method-typaram-kind.rs:2:7
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-10-07 14:23:56 -07:00
|
|
|
LL | fn foo<T:'static>() {
|
|
|
|
| -- help: consider further restricting this bound: `T: std::marker::Send +`
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | 1.bar::<T>();
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^ `T` cannot be sent between threads safely
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Send` is not implemented for `T`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|