]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/warnings-reemitted.rs
Rollup merge of #68328 - jethrogb:jb/target-llvm-args, r=alexcrichton
[rust.git] / src / test / incremental / warnings-reemitted.rs
1 // revisions: cfail1 cfail2 cfail3
2 // compile-flags: -Coverflow-checks=on
3 // build-pass (FIXME(62277): could be check-pass?)
4
5 #![warn(const_err)]
6
7 fn main() {
8     let _ = 255u8 + 1; //~ WARNING attempt to add with overflow
9 }