abe05a73 XL |
1 | // revisions: cfail1 cfail2 cfail3 |
2 | // compile-flags: -Coverflow-checks=on |
f9f354fc |
3 | // build-pass |
abe05a73 |
4 | |
74b04a01 |
5 | #![warn(arithmetic_overflow)] |
abe05a73 |
6 | |
223e47cc |
7 | fn main() { |
74b04a01 |
8 | let _ = 255u8 + 1; //~ WARNING operation will overflow |
223e47cc |
9 | } |