mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 12:35:11 +00:00
18 lines
243 B
Rust
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() {}
|