rustc/tests/ui/expr/if/if-loop.rs
2023-08-02 10:33:26 +02:00

9 lines
141 B
Rust

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