1 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
2 --> $DIR/invalid_upcast_comparisons.rs:16:5
4 16 | (u8 as u32) > 300;
7 note: lint level defined here
8 --> $DIR/invalid_upcast_comparisons.rs:4:9
10 4 | #![deny(invalid_upcast_comparisons)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
14 --> $DIR/invalid_upcast_comparisons.rs:17:5
16 17 | (u8 as i32) > 300;
19 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
20 --> $DIR/invalid_upcast_comparisons.rs:18:5
22 18 | (u8 as u32) == 300;
25 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
26 --> $DIR/invalid_upcast_comparisons.rs:19:5
28 19 | (u8 as i32) == 300;
31 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
32 --> $DIR/invalid_upcast_comparisons.rs:20:5
34 20 | 300 < (u8 as u32);
37 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
38 --> $DIR/invalid_upcast_comparisons.rs:21:5
40 21 | 300 < (u8 as i32);
43 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
44 --> $DIR/invalid_upcast_comparisons.rs:22:5
46 22 | 300 == (u8 as u32);
49 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
50 --> $DIR/invalid_upcast_comparisons.rs:23:5
52 23 | 300 == (u8 as i32);
55 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
56 --> $DIR/invalid_upcast_comparisons.rs:25:5
58 25 | (u8 as u32) <= 300;
61 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
62 --> $DIR/invalid_upcast_comparisons.rs:26:5
64 26 | (u8 as i32) <= 300;
67 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
68 --> $DIR/invalid_upcast_comparisons.rs:27:5
70 27 | (u8 as u32) != 300;
73 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
74 --> $DIR/invalid_upcast_comparisons.rs:28:5
76 28 | (u8 as i32) != 300;
79 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
80 --> $DIR/invalid_upcast_comparisons.rs:29:5
82 29 | 300 >= (u8 as u32);
85 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
86 --> $DIR/invalid_upcast_comparisons.rs:30:5
88 30 | 300 >= (u8 as i32);
91 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
92 --> $DIR/invalid_upcast_comparisons.rs:31:5
94 31 | 300 != (u8 as u32);
97 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
98 --> $DIR/invalid_upcast_comparisons.rs:32:5
100 32 | 300 != (u8 as i32);
103 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
104 --> $DIR/invalid_upcast_comparisons.rs:35:5
106 35 | (u8 as i32) < 0;
109 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
110 --> $DIR/invalid_upcast_comparisons.rs:36:5
112 36 | -5 != (u8 as i32);
115 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
116 --> $DIR/invalid_upcast_comparisons.rs:38:5
118 38 | (u8 as i32) >= 0;
121 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
122 --> $DIR/invalid_upcast_comparisons.rs:39:5
124 39 | -5 == (u8 as i32);
127 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
128 --> $DIR/invalid_upcast_comparisons.rs:42:5
130 42 | 1337 == (u8 as i32);
131 | ^^^^^^^^^^^^^^^^^^^
133 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
134 --> $DIR/invalid_upcast_comparisons.rs:43:5
136 43 | 1337 == (u8 as u32);
137 | ^^^^^^^^^^^^^^^^^^^
139 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
140 --> $DIR/invalid_upcast_comparisons.rs:45:5
142 45 | 1337 != (u8 as i32);
143 | ^^^^^^^^^^^^^^^^^^^
145 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
146 --> $DIR/invalid_upcast_comparisons.rs:46:5
148 46 | 1337 != (u8 as u32);
149 | ^^^^^^^^^^^^^^^^^^^
151 error: because of the numeric bounds on `u8` prior to casting, this expression is always true
152 --> $DIR/invalid_upcast_comparisons.rs:61:5
154 61 | (u8 as i32) > -1;
157 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
158 --> $DIR/invalid_upcast_comparisons.rs:62:5
160 62 | (u8 as i32) < -1;
163 error: because of the numeric bounds on `u8` prior to casting, this expression is always false
164 --> $DIR/invalid_upcast_comparisons.rs:78:5
166 78 | -5 >= (u8 as i32);
169 error: aborting due to 27 previous errors