os-rust/tests/incremental/warnings-reemitted.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
196 B
Rust
Raw Permalink Normal View History

//@ revisions: cfail1 cfail2 cfail3
//@ compile-flags: -Coverflow-checks=on
//@ build-pass
2020-02-18 22:49:47 +01:00
#![warn(arithmetic_overflow)]
fn main() {
2020-02-15 23:02:58 +01:00
let _ = 255u8 + 1; //~ WARNING operation will overflow
}