rust/tests/ui/suggestions/issue-72766.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
574 B
Plaintext
Raw Normal View History

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