Files
rust/tests/incremental/warnings-reemitted.rs
2025-10-13 15:20:49 +02:00

11 lines
221 B
Rust

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