2017-08-13 16:50:27 -05:00
|
|
|
fn main() {
|
|
|
|
if true {
|
2022-05-27 23:58:48 -05:00
|
|
|
} else if {
|
|
|
|
//~^ ERROR missing condition for `if` expression
|
2017-08-13 16:50:27 -05:00
|
|
|
} else {
|
2017-08-17 18:51:52 -05:00
|
|
|
}
|
2017-08-13 16:50:27 -05:00
|
|
|
}
|
2017-08-17 18:51:52 -05:00
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
if true {
|
2022-05-27 23:58:48 -05:00
|
|
|
} else if {
|
|
|
|
//~^ ERROR missing condition for `if` expression
|
2017-08-17 18:51:52 -05:00
|
|
|
}
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar() {}
|