]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/closures/old-closure-expression-remove-semicolon.fixed
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / closures / old-closure-expression-remove-semicolon.fixed
index 623e917da07e86d0c5c7fe639ca07ac934fa596f..8aa9e952b99018faa3836bf10be4e6c3020c164a 100644 (file)
@@ -7,6 +7,6 @@ fn foo() -> i32 {
 fn main() {
     let _x: i32 = {
         //~^ ERROR mismatched types
-        foo() //~ HELP remove this semicolon
+        foo() //~ HELP remove this semicolon to return this value
     };
 }