rustc/tests/ui/expr/if/if-loop.rs
2024-06-21 09:39:33 +02: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() {}