]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-expression-remove-semicolon.rs
Auto merge of #60072 - RalfJung:linked-list, r=shepmaster
[rust.git] / src / test / ui / block-expression-remove-semicolon.rs
1 fn foo() -> i32 {
2    0
3 }
4
5 fn main() {
6     let x: i32 = {
7         //~^ ERROR mismatched types
8         foo(); //~ HELP consider removing this semicolon
9     };
10 }