rust/src/test/ui/block-expression-remove-semicolon.rs

11 lines
159 B
Rust
Raw Normal View History

2019-02-25 17:56:53 -06:00
fn foo() -> i32 {
0
}
fn main() {
let x: i32 = {
//~^ ERROR mismatched types
foo(); //~ HELP consider removing this semicolon
};
}