]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/warnings-reemitted.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[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 }