rust/tests/ui/expr/if/if-loop.rs
2024-02-16 20:02:50 +00:00

9 lines
142 B
Rust

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