72a3667eb3
will guarantee they have unit type.
6 lines
129 B
Rust
6 lines
129 B
Rust
// error-pattern:mismatched types: expected `()` but found `bool`
|
|
|
|
fn main() {
|
|
let a = if true { true };
|
|
log(debug, a);
|
|
} |