]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/return-closures.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / suggestions / return-closures.stderr
index e273793ea2c293fbdfebd1e8790e160e4adafe4e..8b856d8de70337926504ac4dd97371e07d699216 100644 (file)
@@ -2,7 +2,7 @@ error[E0308]: mismatched types
   --> $DIR/return-closures.rs:3:5
    |
 LL | fn foo() {
-   |          - help: try adding a return type: `-> impl for<'r> Fn(&'r i32) -> i32`
+   |          - help: try adding a return type: `-> impl for<'a> Fn(&'a i32) -> i32`
 LL |
 LL |     |x: &i32| 1i32
    |     ^^^^^^^^^^^^^^ expected `()`, found closure