2017-08-13 16:50:27 -05:00
|
|
|
fn main() {
|
|
|
|
if true {
|
2017-11-20 06:13:27 -06:00
|
|
|
} else if { //~ ERROR missing condition
|
2019-12-06 16:23:30 -06:00
|
|
|
//~^ ERROR mismatched types
|
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 {
|
2017-11-20 06:13:27 -06:00
|
|
|
} else if { //~ ERROR missing condition
|
2019-12-06 16:23:30 -06:00
|
|
|
//~^ ERROR mismatched types
|
2017-08-17 18:51:52 -05:00
|
|
|
}
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar() {}
|