]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/old-closure-expression-remove-semicolon.fixed
Auto merge of #84267 - dtolnay:ptrunit, r=nagisa
[rust.git] / src / test / ui / closures / old-closure-expression-remove-semicolon.fixed
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 consider removing this semicolon
11     };
12 }