]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/inference/cannot-infer-async-enabled-impl-trait-bindings.stderr
Rollup merge of #80935 - pierwill:rustc_middle-levelandsource, r=petrochenkov
[rust.git] / src / test / ui / inference / cannot-infer-async-enabled-impl-trait-bindings.stderr
index 2f630c2c9ad71a2fafc2b61376d5493bdd011585..2875cef680117215236af8f365ebb5e6f3d31937 100644 (file)
@@ -13,7 +13,9 @@ error[E0282]: type annotations needed for `impl Future`
 LL |     let fut = async {
    |         --- consider giving `fut` the explicit type `impl Future`, with the type parameters specified
 LL |         make_unit()?;
-   |                    ^ cannot infer type
+   |                    ^ cannot infer type of error for `?` operator
+   |
+   = note: `?` implicitly converts the error value into a type implementing `From<std::io::Error>`
 
 error: aborting due to previous error; 1 warning emitted