]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/inference/cannot-infer-closure-circular.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / inference / cannot-infer-closure-circular.stderr
index a6ddb7ae908fc0fbacb9423d5fde5da0e152cfd5..b706cd2bc36e8a0ba3f53291fcdc7b44e6bd2cf2 100644 (file)
@@ -2,7 +2,12 @@ error[E0282]: type annotations needed for `Result<(), E>`
   --> $DIR/cannot-infer-closure-circular.rs:7:14
    |
 LL |     let x = |r| {
-   |              ^ consider giving this closure parameter the explicit type `Result<(), E>`, where the type parameter `E` is specified
+   |              ^
+   |
+help: consider giving this closure parameter an explicit type, where the type for type parameter `E` is specified
+   |
+LL |     let x = |r: Result<(), E>| {
+   |               +++++++++++++++
 
 error: aborting due to previous error