1 error[E0277]: the `?` operator can only be applied to values that implement `Try`
2 --> $DIR/issue-84841.rs:9:5
5 | ^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = ()>`
7 = help: the trait `Try` is not implemented for `impl Future<Output = ()>`
9 error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`)
10 --> $DIR/issue-84841.rs:9:11
14 LL | | // Adding an .await here avoids the ICE
16 | | ^ cannot use the `?` operator in an async function that returns `()`
20 | |_- this function should return `Result` or `Option` to accept `?`
22 = help: the trait `FromResidual<_>` is not implemented for `()`
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0277`.