rust/tests/incremental/warnings-reemitted.rs
2023-01-11 09:32:08 +00:00

10 lines
193 B
Rust

// revisions: cfail1 cfail2 cfail3
// compile-flags: -Coverflow-checks=on
// build-pass
#![warn(arithmetic_overflow)]
fn main() {
let _ = 255u8 + 1; //~ WARNING operation will overflow
}