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