rust/src/test/ui/if/if-loop.rs
2018-12-25 21:08:33 -07:00

10 lines
179 B
Rust

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