]> git.lizzy.rs Git - rust.git/blob - src/test/ui/if/if-loop.rs
Auto merge of #65838 - estebank:resilient-recovery, r=Centril
[rust.git] / src / test / ui / if / if-loop.rs
1 // check-pass
2
3 // This used to ICE because the "if" being unreachable was not handled correctly
4 fn err() {
5     if loop {} {}
6 }
7
8 fn main() {}