]> git.proxmox.com Git - rustc.git/blob - src/test/ui/block-expression-remove-semicolon.fixed
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / block-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 }