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