2020-07-02 14:32:12 +09:00
|
|
|
// run-rustfix
|
|
|
|
|
2019-02-25 23:56:53 +00:00
|
|
|
fn foo() -> i32 {
|
2020-07-02 14:32:12 +09:00
|
|
|
0
|
2019-02-25 23:56:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2020-07-02 14:32:12 +09:00
|
|
|
let _x: i32 = {
|
2019-02-25 23:56:53 +00:00
|
|
|
//~^ ERROR mismatched types
|
2022-10-04 16:46:12 +08:00
|
|
|
foo(); //~ HELP remove this semicolon to return this value
|
2019-02-25 23:56:53 +00:00
|
|
|
};
|
|
|
|
}
|