blob: 3f90119cd89543d8d39ba015a3802be2c8c485cf [file] [log] [blame]
#![allow(dead_code)]
#![warn(overflowing_literals)]
// compile-flags: -D unused-comparisons
fn main() { }
fn bar() -> i8 {
return 123;
}
fn baz() -> bool {
128 > bar() //~ ERROR comparison is useless due to type limits
//~| WARN literal out of range for `i8`
}