2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: the `?` operator can only be applied to values that implement `Try`
|
2020-05-30 09:48:54 +00:00
|
|
|
--> $DIR/issue-72766.rs:14:5
|
|
|
|
|
|
|
|
|
LL | SadGirl {}.call()?;
|
2021-11-17 00:16:23 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<(), ()>>`
|
2020-05-30 09:48:54 +00:00
|
|
|
|
|
2021-11-17 00:16:23 +00:00
|
|
|
= help: the trait `Try` is not implemented for `impl Future<Output = Result<(), ()>>`
|
2020-10-21 21:25:09 +00:00
|
|
|
help: consider `await`ing on the `Future`
|
|
|
|
|
|
|
|
|
LL | SadGirl {}.call().await?;
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++
|
2020-05-30 09:48:54 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-05-30 09:48:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|