4 #![deny(invalid_upcast_comparisons)]
5 #![allow(unused, eq_op, no_effect, unnecessary_operation)]
10 (u8_max as u32) > 300; //~ERROR because of the numeric bounds on `u8_max` prior to casting, this expression is always false
13 (zero as i32) < -5; //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always false
16 -5 < (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always true
17 0 <= (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always true
20 -5 > (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always false
21 -5 >= (u8_max as i32); //~ERROR because of the numeric bounds on `u8_max` prior to casting, this expression is always false
22 1337 == (u8_max as i32); //~ERROR because of the numeric bounds on `u8_max` prior to casting, this expression is always false
24 -5 == (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always false
25 -5 != (u8_max as i32); //~ERROR because of the numeric bounds on `u8_max` prior to casting, this expression is always true
28 42 == (u8_max as i32);
29 42 != (u8_max as i32);
31 (u8_max as i32) == 42;
32 (u8_max as i32) != 42;