summary refs log tree commit diff
path: root/src/test/compile-fail/if-without-else-result.rs
blob: 2454f4f37bf69515cfd870869a77974fdde801ee (plain)
1
2
3
4
5
6
// error-pattern:mismatched types: expected `()` but found `bool`

fn main() {
    let a = if true { true };
    log(debug, a);
}