rust/tests/ui/parser/issues/issue-13483.rs
2023-01-11 09:32:08 +00:00

18 lines
243 B
Rust

fn main() {
if true {
} else if {
//~^ ERROR missing condition for `if` expression
} else {
}
}
fn foo() {
if true {
} else if {
//~^ ERROR missing condition for `if` expression
}
bar();
}
fn bar() {}