blob: 465b54e69d1b438fb3fbc1c5b12295bc448281cc [file] [log] [blame]
// The test confirms ICE-125323 is fixed.
//
// This warning tests there is no warning about dead code
// when there is a constant evaluation error.
#![warn(unused)]
fn should_not_be_dead() {}
fn main() {
for _ in 0..0 {
[(); loop {}]; //~ ERROR constant evaluation is taking a long time
}
should_not_be_dead();
}