blob: 1a08d75aba689f212f7b254ca44e47ee14427120 [file] [log] [blame]
#![allow(dead_code)]
#![warn(overflowing_literals)]
//@ compile-flags: -D unused-comparisons
fn main() { }
fn qux() {
let mut i = 1i8;
while 200 != i { //~ ERROR comparison is useless due to type limits
//~| WARN literal out of range for `i8`
i += 1;
}
}