rust/src/test/ui/if/if-loop.rs
2019-06-16 12:23:22 +03:00

8 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() {}