2020-05-10 09:34:20 -05:00
|
|
|
error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
|
2020-05-14 10:07:46 -05:00
|
|
|
--> $DIR/issue-61076.rs:22:5
|
2020-05-10 09:34:20 -05:00
|
|
|
|
|
|
|
|
LL | foo()?;
|
|
|
|
| ^^^^^^
|
|
|
|
| |
|
|
|
|
| the `?` operator cannot be applied to type `impl std::future::Future`
|
|
|
|
| help: consider using `.await` here: `foo().await?`
|
|
|
|
|
|
|
|
|
= help: the trait `std::ops::Try` is not implemented for `impl std::future::Future`
|
|
|
|
= note: required by `std::ops::Try::into_result`
|
|
|
|
|
2020-05-14 10:07:46 -05:00
|
|
|
error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
|
|
|
|
--> $DIR/issue-61076.rs:28:5
|
|
|
|
|
|
|
|
|
LL | t?;
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| the `?` operator cannot be applied to type `T`
|
|
|
|
| help: consider using `.await` here: `t.await?`
|
|
|
|
|
|
|
|
|
= help: the trait `std::ops::Try` is not implemented for `T`
|
|
|
|
= note: required by `std::ops::Try::into_result`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2020-05-10 09:34:20 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|