]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/inference/cannot-infer-async.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / inference / cannot-infer-async.stderr
index 92a9045f6db503c5e57ffe4e80f85480e3a56ef7..282bc13e9e7809afb33daec3acaf86a5caf3d2d7 100644 (file)
@@ -4,7 +4,9 @@ error[E0282]: type annotations needed
 LL |     let fut = async {
    |         --- consider giving `fut` a type
 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