710dcbd381
Replace "integral variable" with "integer" and replace "floating-point variable" with "floating-point number" to make the message less confusing.
12 lines
213 B
Rust
12 lines
213 B
Rust
fn main() {
|
|
let a = if true {
|
|
0
|
|
} else if false {
|
|
//~^ ERROR if may be missing an else clause
|
|
//~| expected type `()`
|
|
//~| found type `{integer}`
|
|
//~| expected (), found integer
|
|
1
|
|
};
|
|
}
|