1 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
2 --> $DIR/invalid_upcast_comparisons.rs:30:5
4 LL | (u8 as u32) > 300;
7 = note: `-D clippy::invalid-upcast-comparisons` implied by `-D warnings`
9 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
10 --> $DIR/invalid_upcast_comparisons.rs:31:5
12 LL | (u8 as i32) > 300;
15 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
16 --> $DIR/invalid_upcast_comparisons.rs:32:5
18 LL | (u8 as u32) == 300;
21 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
22 --> $DIR/invalid_upcast_comparisons.rs:33:5
24 LL | (u8 as i32) == 300;
27 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
28 --> $DIR/invalid_upcast_comparisons.rs:34:5
30 LL | 300 < (u8 as u32);
33 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
34 --> $DIR/invalid_upcast_comparisons.rs:35:5
36 LL | 300 < (u8 as i32);
39 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
40 --> $DIR/invalid_upcast_comparisons.rs:36:5
42 LL | 300 == (u8 as u32);
45 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
46 --> $DIR/invalid_upcast_comparisons.rs:37:5
48 LL | 300 == (u8 as i32);
51 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
52 --> $DIR/invalid_upcast_comparisons.rs:39:5
54 LL | (u8 as u32) <= 300;
57 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
58 --> $DIR/invalid_upcast_comparisons.rs:40:5
60 LL | (u8 as i32) <= 300;
63 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
64 --> $DIR/invalid_upcast_comparisons.rs:41:5
66 LL | (u8 as u32) != 300;
69 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
70 --> $DIR/invalid_upcast_comparisons.rs:42:5
72 LL | (u8 as i32) != 300;
75 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
76 --> $DIR/invalid_upcast_comparisons.rs:43:5
78 LL | 300 >= (u8 as u32);
81 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
82 --> $DIR/invalid_upcast_comparisons.rs:44:5
84 LL | 300 >= (u8 as i32);
87 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
88 --> $DIR/invalid_upcast_comparisons.rs:45:5
90 LL | 300 != (u8 as u32);
93 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
94 --> $DIR/invalid_upcast_comparisons.rs:46:5
96 LL | 300 != (u8 as i32);
99 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
100 --> $DIR/invalid_upcast_comparisons.rs:49:5
102 LL | (u8 as i32) < 0;
105 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
106 --> $DIR/invalid_upcast_comparisons.rs:50:5
108 LL | -5 != (u8 as i32);
111 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
112 --> $DIR/invalid_upcast_comparisons.rs:52:5
114 LL | (u8 as i32) >= 0;
117 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
118 --> $DIR/invalid_upcast_comparisons.rs:53:5
120 LL | -5 == (u8 as i32);
123 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
124 --> $DIR/invalid_upcast_comparisons.rs:56:5
126 LL | 1337 == (u8 as i32);
127 | ^^^^^^^^^^^^^^^^^^^
129 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
130 --> $DIR/invalid_upcast_comparisons.rs:57:5
132 LL | 1337 == (u8 as u32);
133 | ^^^^^^^^^^^^^^^^^^^
135 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
136 --> $DIR/invalid_upcast_comparisons.rs:59:5
138 LL | 1337 != (u8 as i32);
139 | ^^^^^^^^^^^^^^^^^^^
141 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
142 --> $DIR/invalid_upcast_comparisons.rs:60:5
144 LL | 1337 != (u8 as u32);
145 | ^^^^^^^^^^^^^^^^^^^
147 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
148 --> $DIR/invalid_upcast_comparisons.rs:74:5
150 LL | (u8 as i32) > -1;
153 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
154 --> $DIR/invalid_upcast_comparisons.rs:75:5
156 LL | (u8 as i32) < -1;
159 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
160 --> $DIR/invalid_upcast_comparisons.rs:91:5
162 LL | -5 >= (u8 as i32);
165 error: aborting due to 27 previous errors