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