1 error[E0308]: mismatched types
2 --> $DIR/numeric-cast-no-fix.rs:10:15
4 LL | x_usize > -1_isize;
5 | ^^^^^^^^ expected `usize`, found `isize`
7 = note: `-1_isize` cannot fit into type `usize`
9 error[E0308]: mismatched types
10 --> $DIR/numeric-cast-no-fix.rs:12:14
12 LL | x_u128 > -1_isize;
13 | ^^^^^^^^ expected `u128`, found `isize`
15 = note: `-1_isize` cannot fit into type `u128`
17 error[E0308]: mismatched types
18 --> $DIR/numeric-cast-no-fix.rs:14:13
20 LL | x_u64 > -1_isize;
21 | ^^^^^^^^ expected `u64`, found `isize`
23 = note: `-1_isize` cannot fit into type `u64`
25 error[E0308]: mismatched types
26 --> $DIR/numeric-cast-no-fix.rs:16:13
28 LL | x_u32 > -1_isize;
29 | ^^^^^^^^ expected `u32`, found `isize`
31 = note: `-1_isize` cannot fit into type `u32`
33 error[E0308]: mismatched types
34 --> $DIR/numeric-cast-no-fix.rs:18:13
36 LL | x_u16 > -1_isize;
37 | ^^^^^^^^ expected `u16`, found `isize`
39 = note: `-1_isize` cannot fit into type `u16`
41 error[E0308]: mismatched types
42 --> $DIR/numeric-cast-no-fix.rs:20:12
45 | ^^^^^^^^ expected `u8`, found `isize`
47 help: you can convert `x_u8` from `u8` to `isize`, matching the type of `-1_isize`
49 LL | isize::from(x_u8) > -1_isize;
52 error[E0308]: mismatched types
53 --> $DIR/numeric-cast-no-fix.rs:23:15
55 LL | x_usize > -1_i128;
56 | ^^^^^^^ expected `usize`, found `i128`
58 = note: `-1_i128` cannot fit into type `usize`
60 error[E0308]: mismatched types
61 --> $DIR/numeric-cast-no-fix.rs:25:14
63 LL | x_u128 > -1_i128;
64 | ^^^^^^^ expected `u128`, found `i128`
66 = note: `-1_i128` cannot fit into type `u128`
68 error[E0308]: mismatched types
69 --> $DIR/numeric-cast-no-fix.rs:27:13
72 | ^^^^^^^ expected `u64`, found `i128`
74 help: you can convert `x_u64` from `u64` to `i128`, matching the type of `-1_i128`
76 LL | i128::from(x_u64) > -1_i128;
79 error[E0308]: mismatched types
80 --> $DIR/numeric-cast-no-fix.rs:29:13
83 | ^^^^^^^ expected `u32`, found `i128`
85 help: you can convert `x_u32` from `u32` to `i128`, matching the type of `-1_i128`
87 LL | i128::from(x_u32) > -1_i128;
90 error[E0308]: mismatched types
91 --> $DIR/numeric-cast-no-fix.rs:31:13
94 | ^^^^^^^ expected `u16`, found `i128`
96 help: you can convert `x_u16` from `u16` to `i128`, matching the type of `-1_i128`
98 LL | i128::from(x_u16) > -1_i128;
101 error[E0308]: mismatched types
102 --> $DIR/numeric-cast-no-fix.rs:33:12
105 | ^^^^^^^ expected `u8`, found `i128`
107 help: you can convert `x_u8` from `u8` to `i128`, matching the type of `-1_i128`
109 LL | i128::from(x_u8) > -1_i128;
112 error[E0308]: mismatched types
113 --> $DIR/numeric-cast-no-fix.rs:36:15
115 LL | x_usize > -1_i64;
116 | ^^^^^^ expected `usize`, found `i64`
118 = note: `-1_i64` cannot fit into type `usize`
120 error[E0308]: mismatched types
121 --> $DIR/numeric-cast-no-fix.rs:38:14
123 LL | x_u128 > -1_i64;
124 | ^^^^^^ expected `u128`, found `i64`
126 = note: `-1_i64` cannot fit into type `u128`
128 error[E0308]: mismatched types
129 --> $DIR/numeric-cast-no-fix.rs:40:13
132 | ^^^^^^ expected `u64`, found `i64`
134 = note: `-1_i64` cannot fit into type `u64`
136 error[E0308]: mismatched types
137 --> $DIR/numeric-cast-no-fix.rs:42:13
140 | ^^^^^^ expected `u32`, found `i64`
142 help: you can convert `x_u32` from `u32` to `i64`, matching the type of `-1_i64`
144 LL | i64::from(x_u32) > -1_i64;
147 error[E0308]: mismatched types
148 --> $DIR/numeric-cast-no-fix.rs:44:13
151 | ^^^^^^ expected `u16`, found `i64`
153 help: you can convert `x_u16` from `u16` to `i64`, matching the type of `-1_i64`
155 LL | i64::from(x_u16) > -1_i64;
158 error[E0308]: mismatched types
159 --> $DIR/numeric-cast-no-fix.rs:46:12
162 | ^^^^^^ expected `u8`, found `i64`
164 help: you can convert `x_u8` from `u8` to `i64`, matching the type of `-1_i64`
166 LL | i64::from(x_u8) > -1_i64;
169 error[E0308]: mismatched types
170 --> $DIR/numeric-cast-no-fix.rs:49:15
172 LL | x_usize > -1_i32;
173 | ^^^^^^ expected `usize`, found `i32`
175 = note: `-1_i32` cannot fit into type `usize`
177 error[E0308]: mismatched types
178 --> $DIR/numeric-cast-no-fix.rs:51:14
180 LL | x_u128 > -1_i32;
181 | ^^^^^^ expected `u128`, found `i32`
183 = note: `-1_i32` cannot fit into type `u128`
185 error[E0308]: mismatched types
186 --> $DIR/numeric-cast-no-fix.rs:53:13
189 | ^^^^^^ expected `u64`, found `i32`
191 = note: `-1_i32` cannot fit into type `u64`
193 error[E0308]: mismatched types
194 --> $DIR/numeric-cast-no-fix.rs:55:13
197 | ^^^^^^ expected `u32`, found `i32`
199 = note: `-1_i32` cannot fit into type `u32`
201 error[E0308]: mismatched types
202 --> $DIR/numeric-cast-no-fix.rs:57:13
205 | ^^^^^^ expected `u16`, found `i32`
207 help: you can convert `x_u16` from `u16` to `i32`, matching the type of `-1_i32`
209 LL | i32::from(x_u16) > -1_i32;
212 error[E0308]: mismatched types
213 --> $DIR/numeric-cast-no-fix.rs:59:12
216 | ^^^^^^ expected `u8`, found `i32`
218 help: you can convert `x_u8` from `u8` to `i32`, matching the type of `-1_i32`
220 LL | i32::from(x_u8) > -1_i32;
223 error[E0308]: mismatched types
224 --> $DIR/numeric-cast-no-fix.rs:62:15
226 LL | x_usize > -1_i16;
227 | ^^^^^^ expected `usize`, found `i16`
229 = note: `-1_i16` cannot fit into type `usize`
231 error[E0308]: mismatched types
232 --> $DIR/numeric-cast-no-fix.rs:64:14
234 LL | x_u128 > -1_i16;
235 | ^^^^^^ expected `u128`, found `i16`
237 = note: `-1_i16` cannot fit into type `u128`
239 error[E0308]: mismatched types
240 --> $DIR/numeric-cast-no-fix.rs:66:13
243 | ^^^^^^ expected `u64`, found `i16`
245 = note: `-1_i16` cannot fit into type `u64`
247 error[E0308]: mismatched types
248 --> $DIR/numeric-cast-no-fix.rs:68:13
251 | ^^^^^^ expected `u32`, found `i16`
253 = note: `-1_i16` cannot fit into type `u32`
255 error[E0308]: mismatched types
256 --> $DIR/numeric-cast-no-fix.rs:70:13
259 | ^^^^^^ expected `u16`, found `i16`
261 = note: `-1_i16` cannot fit into type `u16`
263 error[E0308]: mismatched types
264 --> $DIR/numeric-cast-no-fix.rs:72:12
267 | ^^^^^^ expected `u8`, found `i16`
269 help: you can convert `x_u8` from `u8` to `i16`, matching the type of `-1_i16`
271 LL | i16::from(x_u8) > -1_i16;
274 error[E0308]: mismatched types
275 --> $DIR/numeric-cast-no-fix.rs:75:15
277 LL | x_usize > -1_i8;
278 | ^^^^^ expected `usize`, found `i8`
280 = note: `-1_i8` cannot fit into type `usize`
282 error[E0308]: mismatched types
283 --> $DIR/numeric-cast-no-fix.rs:77:14
286 | ^^^^^ expected `u128`, found `i8`
288 = note: `-1_i8` cannot fit into type `u128`
290 error[E0308]: mismatched types
291 --> $DIR/numeric-cast-no-fix.rs:79:13
294 | ^^^^^ expected `u64`, found `i8`
296 = note: `-1_i8` cannot fit into type `u64`
298 error[E0308]: mismatched types
299 --> $DIR/numeric-cast-no-fix.rs:81:13
302 | ^^^^^ expected `u32`, found `i8`
304 = note: `-1_i8` cannot fit into type `u32`
306 error[E0308]: mismatched types
307 --> $DIR/numeric-cast-no-fix.rs:83:13
310 | ^^^^^ expected `u16`, found `i8`
312 = note: `-1_i8` cannot fit into type `u16`
314 error[E0308]: mismatched types
315 --> $DIR/numeric-cast-no-fix.rs:85:12
318 | ^^^^^ expected `u8`, found `i8`
320 = note: `-1_i8` cannot fit into type `u8`
322 error: aborting due to 36 previous errors
324 For more information about this error, try `rustc --explain E0308`.