rust/src/test/ui/if/if-loop.rs

11 lines
179 B
Rust
Raw Normal View History

// compile-pass
// skip-codegen
#![allow(warnings)]
// This used to ICE because the "if" being unreachable was not handled correctly
fn err() {
if loop {} {}
}
fn main() {}