aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/if-without-else.rs
blob: 1a0f6449d703d4e21b1e28248b220d79b807136a (plain)
1
2
3
4
5
6
7
8
9
fn foo(pred: bool) -> u8 {
    if pred { // { dg-error "mismatched types" }
        1
    }
    3
}

fn main(){
}