]> git.lizzy.rs Git - rust.git/blob - tests/incremental/warnings-reemitted.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / incremental / warnings-reemitted.rs
1 // revisions: cfail1 cfail2 cfail3
2 // compile-flags: -Coverflow-checks=on
3 // build-pass
4
5 #![warn(arithmetic_overflow)]
6
7 fn main() {
8     let _ = 255u8 + 1; //~ WARNING operation will overflow
9 }