mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
12 lines
208 B
Rust
12 lines
208 B
Rust
//@ dont-require-annotations: NOTE
|
|
|
|
fn main() {
|
|
let a = if true {
|
|
0
|
|
} else if false {
|
|
//~^ ERROR `if` may be missing an `else` clause
|
|
//~| NOTE expected integer, found `()`
|
|
1
|
|
};
|
|
}
|