rust/src/test/ui/block-expression-remove-semicolon.rs
2019-03-12 18:34:43 +00:00

11 lines
159 B
Rust

fn foo() -> i32 {
0
}
fn main() {
let x: i32 = {
//~^ ERROR mismatched types
foo(); //~ HELP consider removing this semicolon
};
}