1// run-rustfix
2
3fn foo() -> i32 {
4    0
5}
6
7fn main() {
8    let _x: i32 = {
9        //~^ ERROR mismatched types
10        foo() //~ HELP consider removing this semicolon
11    };
12}
13