4 #![allow(many_single_char_names)]
5 #![deny(overflow_check_conditional)]
11 if a + b < a { //~ERROR You are trying to use classic C overflow conditions that will fail in Rust.
14 if a > a + b { //~ERROR You are trying to use classic C overflow conditions that will fail in Rust.
17 if a + b < b { //~ERROR You are trying to use classic C overflow conditions that will fail in Rust.
20 if b > a + b { //~ERROR You are trying to use classic C overflow conditions that will fail in Rust.
23 if a - b > b { //~ERROR You are trying to use classic C underflow conditions that will fail in Rust.
26 if b < a - b { //~ERROR You are trying to use classic C underflow conditions that will fail in Rust.
29 if a - b > a { //~ERROR You are trying to use classic C underflow conditions that will fail in Rust.
32 if a < a - b { //~ERROR You are trying to use classic C underflow conditions that will fail in Rust.