]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-24036.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-24036.stderr
index e6b8367f74fb56830708e4251c91ed79e4161d6a..4622501f33edae7a823ab372401f1d233f1a7a19 100644 (file)
@@ -15,7 +15,12 @@ error[E0282]: type annotations needed
   --> $DIR/issue-24036.rs:9:15
    |
 LL |         1 => |c| c + 1,
-   |               ^ consider giving this closure parameter a type
+   |               ^
+   |
+help: consider giving this closure parameter an explicit type
+   |
+LL |         1 => |c: _| c + 1,
+   |                +++
 
 error: aborting due to 2 previous errors