2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2020-07-02 05:32:12 +00:00
|
|
|
|
|
|
|
fn foo() -> i32 {
|
|
|
|
0
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _x: i32 = {
|
|
|
|
//~^ ERROR mismatched types
|
2022-10-04 08:46:12 +00:00
|
|
|
foo() //~ HELP remove this semicolon to return this value
|
2020-07-02 05:32:12 +00:00
|
|
|
};
|
|
|
|
}
|