]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/warnings-reemitted.rs
Rollup merge of #99987 - Alexendoo:parse-format-position-span, r=fee1-dead
[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 }