2018-08-08 12:28:26 +00:00
|
|
|
error[E0277]: `T` cannot be sent between threads safely
|
2022-08-16 06:27:22 +00:00
|
|
|
--> $DIR/bad-method-typaram-kind.rs:2:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | 1.bar::<T>();
|
2022-08-16 06:27:22 +00:00
|
|
|
| ^ `T` cannot be sent between threads safely
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `Bar::bar`
|
|
|
|
--> $DIR/bad-method-typaram-kind.rs:6:14
|
|
|
|
|
|
|
|
|
LL | fn bar<T:Send>(&self);
|
|
|
|
| ^^^^ required by this bound in `Bar::bar`
|
2020-03-14 02:28:14 +00:00
|
|
|
help: consider further restricting this bound
|
2019-12-26 12:43:33 +00:00
|
|
|
|
|
2021-03-30 09:56:39 +00:00
|
|
|
LL | fn foo<T:'static + std::marker::Send>() {
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++++++++++++++++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|