1 error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
2 --> $DIR/issue-61076.rs:22:5
7 | the `?` operator cannot be applied to type `impl std::future::Future`
8 | help: consider using `.await` here: `foo().await?`
10 = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future`
11 = note: required by `std::ops::Try::into_result`
13 error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
14 --> $DIR/issue-61076.rs:28:5
19 | the `?` operator cannot be applied to type `T`
20 | help: consider using `.await` here: `t.await?`
22 = help: the trait `std::ops::Try` is not implemented for `T`
23 = note: required by `std::ops::Try::into_result`
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0277`.