]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/warnings-reemitted.rs
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
[rust.git] / src / test / 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 }