]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/old-closure-expression-remove-semicolon.rs
Rollup merge of #106779 - RReverser:patch-2, r=Mark-Simulacrum
[rust.git] / tests / ui / closures / old-closure-expression-remove-semicolon.rs
1 // run-rustfix
2
3 fn foo() -> i32 {
4     0
5 }
6
7 fn main() {
8     let _x: i32 = {
9         //~^ ERROR mismatched types
10         foo(); //~ HELP remove this semicolon to return this value
11     };
12 }