about summary refs log tree commit diff
path: root/src/test/ui/inference/cannot-infer-async.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/inference/cannot-infer-async.stderr')
-rw-r--r--src/test/ui/inference/cannot-infer-async.stderr4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/inference/cannot-infer-async.stderr b/src/test/ui/inference/cannot-infer-async.stderr
index 92a9045f6db..d5cccc7a948 100644
--- a/src/test/ui/inference/cannot-infer-async.stderr
+++ b/src/test/ui/inference/cannot-infer-async.stderr
@@ -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
+   |
+   = note: the `?` operation implicitly converts the error value into a type implementing `From<std::io::Error>`
 
 error: aborting due to previous error