rust/tests/ui/expr/if/issue-4201.rs
2023-01-11 09:32:08 +00:00

10 lines
167 B
Rust

fn main() {
let a = if true {
0
} else if false {
//~^ ERROR `if` may be missing an `else` clause
//~| expected integer, found `()`
1
};
}