rust/src/test/compile-fail/if-without-else-result.rs

6 lines
129 B
Rust
Raw Normal View History

// error-pattern:mismatched types: expected `()` but found `bool`
fn main() {
let a = if true { true };
log(debug, a);
}