summaryrefslogtreecommitdiffstats
path: root/src/test/ui/expr/if/if-loop.rs
blob: 06d0bdf456cdb33e1be0b037f5d77ad1cd5e08d1 (plain)
1
2
3
4
5
6
7
8
// check-pass

// This used to ICE because the "if" being unreachable was not handled correctly
fn err() {
    if loop {} {}
}

fn main() {}