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-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
|
|
|
|
|
|
2020-03-13 19:28:14 -07:00
|
|
|
help: consider further restricting this bound
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2021-03-30 17:56:39 +08:00
|
|
|
LL | fn foo<T:'static + std::marker::Send>() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|