fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/numeric-cast-no-fix.rs:10:15 3 | 4LL | x_usize > -1_isize; 5 | ------- ^^^^^^^^ expected `usize`, found `isize` 6 | | 7 | expected because this is `usize` 8 | 9 = note: `-1_isize` cannot fit into type `usize` 10 11error[E0308]: mismatched types 12 --> $DIR/numeric-cast-no-fix.rs:12:14 13 | 14LL | x_u128 > -1_isize; 15 | ------ ^^^^^^^^ expected `u128`, found `isize` 16 | | 17 | expected because this is `u128` 18 | 19 = note: `-1_isize` cannot fit into type `u128` 20 21error[E0308]: mismatched types 22 --> $DIR/numeric-cast-no-fix.rs:14:13 23 | 24LL | x_u64 > -1_isize; 25 | ----- ^^^^^^^^ expected `u64`, found `isize` 26 | | 27 | expected because this is `u64` 28 | 29 = note: `-1_isize` cannot fit into type `u64` 30 31error[E0308]: mismatched types 32 --> $DIR/numeric-cast-no-fix.rs:16:13 33 | 34LL | x_u32 > -1_isize; 35 | ----- ^^^^^^^^ expected `u32`, found `isize` 36 | | 37 | expected because this is `u32` 38 | 39 = note: `-1_isize` cannot fit into type `u32` 40 41error[E0308]: mismatched types 42 --> $DIR/numeric-cast-no-fix.rs:18:13 43 | 44LL | x_u16 > -1_isize; 45 | ----- ^^^^^^^^ expected `u16`, found `isize` 46 | | 47 | expected because this is `u16` 48 | 49 = note: `-1_isize` cannot fit into type `u16` 50 51error[E0308]: mismatched types 52 --> $DIR/numeric-cast-no-fix.rs:20:12 53 | 54LL | x_u8 > -1_isize; 55 | ---- ^^^^^^^^ expected `u8`, found `isize` 56 | | 57 | expected because this is `u8` 58 | 59help: you can convert `x_u8` from `u8` to `isize`, matching the type of `-1_isize` 60 | 61LL | isize::from(x_u8) > -1_isize; 62 | ++++++++++++ + 63 64error[E0308]: mismatched types 65 --> $DIR/numeric-cast-no-fix.rs:23:15 66 | 67LL | x_usize > -1_i128; 68 | ------- ^^^^^^^ expected `usize`, found `i128` 69 | | 70 | expected because this is `usize` 71 | 72 = note: `-1_i128` cannot fit into type `usize` 73 74error[E0308]: mismatched types 75 --> $DIR/numeric-cast-no-fix.rs:25:14 76 | 77LL | x_u128 > -1_i128; 78 | ------ ^^^^^^^ expected `u128`, found `i128` 79 | | 80 | expected because this is `u128` 81 | 82 = note: `-1_i128` cannot fit into type `u128` 83 84error[E0308]: mismatched types 85 --> $DIR/numeric-cast-no-fix.rs:27:13 86 | 87LL | x_u64 > -1_i128; 88 | ----- ^^^^^^^ expected `u64`, found `i128` 89 | | 90 | expected because this is `u64` 91 | 92help: you can convert `x_u64` from `u64` to `i128`, matching the type of `-1_i128` 93 | 94LL | i128::from(x_u64) > -1_i128; 95 | +++++++++++ + 96 97error[E0308]: mismatched types 98 --> $DIR/numeric-cast-no-fix.rs:29:13 99 | 100LL | x_u32 > -1_i128; 101 | ----- ^^^^^^^ expected `u32`, found `i128` 102 | | 103 | expected because this is `u32` 104 | 105help: you can convert `x_u32` from `u32` to `i128`, matching the type of `-1_i128` 106 | 107LL | i128::from(x_u32) > -1_i128; 108 | +++++++++++ + 109 110error[E0308]: mismatched types 111 --> $DIR/numeric-cast-no-fix.rs:31:13 112 | 113LL | x_u16 > -1_i128; 114 | ----- ^^^^^^^ expected `u16`, found `i128` 115 | | 116 | expected because this is `u16` 117 | 118help: you can convert `x_u16` from `u16` to `i128`, matching the type of `-1_i128` 119 | 120LL | i128::from(x_u16) > -1_i128; 121 | +++++++++++ + 122 123error[E0308]: mismatched types 124 --> $DIR/numeric-cast-no-fix.rs:33:12 125 | 126LL | x_u8 > -1_i128; 127 | ---- ^^^^^^^ expected `u8`, found `i128` 128 | | 129 | expected because this is `u8` 130 | 131help: you can convert `x_u8` from `u8` to `i128`, matching the type of `-1_i128` 132 | 133LL | i128::from(x_u8) > -1_i128; 134 | +++++++++++ + 135 136error[E0308]: mismatched types 137 --> $DIR/numeric-cast-no-fix.rs:36:15 138 | 139LL | x_usize > -1_i64; 140 | ------- ^^^^^^ expected `usize`, found `i64` 141 | | 142 | expected because this is `usize` 143 | 144 = note: `-1_i64` cannot fit into type `usize` 145 146error[E0308]: mismatched types 147 --> $DIR/numeric-cast-no-fix.rs:38:14 148 | 149LL | x_u128 > -1_i64; 150 | ------ ^^^^^^ expected `u128`, found `i64` 151 | | 152 | expected because this is `u128` 153 | 154 = note: `-1_i64` cannot fit into type `u128` 155 156error[E0308]: mismatched types 157 --> $DIR/numeric-cast-no-fix.rs:40:13 158 | 159LL | x_u64 > -1_i64; 160 | ----- ^^^^^^ expected `u64`, found `i64` 161 | | 162 | expected because this is `u64` 163 | 164 = note: `-1_i64` cannot fit into type `u64` 165 166error[E0308]: mismatched types 167 --> $DIR/numeric-cast-no-fix.rs:42:13 168 | 169LL | x_u32 > -1_i64; 170 | ----- ^^^^^^ expected `u32`, found `i64` 171 | | 172 | expected because this is `u32` 173 | 174help: you can convert `x_u32` from `u32` to `i64`, matching the type of `-1_i64` 175 | 176LL | i64::from(x_u32) > -1_i64; 177 | ++++++++++ + 178 179error[E0308]: mismatched types 180 --> $DIR/numeric-cast-no-fix.rs:44:13 181 | 182LL | x_u16 > -1_i64; 183 | ----- ^^^^^^ expected `u16`, found `i64` 184 | | 185 | expected because this is `u16` 186 | 187help: you can convert `x_u16` from `u16` to `i64`, matching the type of `-1_i64` 188 | 189LL | i64::from(x_u16) > -1_i64; 190 | ++++++++++ + 191 192error[E0308]: mismatched types 193 --> $DIR/numeric-cast-no-fix.rs:46:12 194 | 195LL | x_u8 > -1_i64; 196 | ---- ^^^^^^ expected `u8`, found `i64` 197 | | 198 | expected because this is `u8` 199 | 200help: you can convert `x_u8` from `u8` to `i64`, matching the type of `-1_i64` 201 | 202LL | i64::from(x_u8) > -1_i64; 203 | ++++++++++ + 204 205error[E0308]: mismatched types 206 --> $DIR/numeric-cast-no-fix.rs:49:15 207 | 208LL | x_usize > -1_i32; 209 | ------- ^^^^^^ expected `usize`, found `i32` 210 | | 211 | expected because this is `usize` 212 | 213 = note: `-1_i32` cannot fit into type `usize` 214 215error[E0308]: mismatched types 216 --> $DIR/numeric-cast-no-fix.rs:51:14 217 | 218LL | x_u128 > -1_i32; 219 | ------ ^^^^^^ expected `u128`, found `i32` 220 | | 221 | expected because this is `u128` 222 | 223 = note: `-1_i32` cannot fit into type `u128` 224 225error[E0308]: mismatched types 226 --> $DIR/numeric-cast-no-fix.rs:53:13 227 | 228LL | x_u64 > -1_i32; 229 | ----- ^^^^^^ expected `u64`, found `i32` 230 | | 231 | expected because this is `u64` 232 | 233 = note: `-1_i32` cannot fit into type `u64` 234 235error[E0308]: mismatched types 236 --> $DIR/numeric-cast-no-fix.rs:55:13 237 | 238LL | x_u32 > -1_i32; 239 | ----- ^^^^^^ expected `u32`, found `i32` 240 | | 241 | expected because this is `u32` 242 | 243 = note: `-1_i32` cannot fit into type `u32` 244 245error[E0308]: mismatched types 246 --> $DIR/numeric-cast-no-fix.rs:57:13 247 | 248LL | x_u16 > -1_i32; 249 | ----- ^^^^^^ expected `u16`, found `i32` 250 | | 251 | expected because this is `u16` 252 | 253help: you can convert `x_u16` from `u16` to `i32`, matching the type of `-1_i32` 254 | 255LL | i32::from(x_u16) > -1_i32; 256 | ++++++++++ + 257 258error[E0308]: mismatched types 259 --> $DIR/numeric-cast-no-fix.rs:59:12 260 | 261LL | x_u8 > -1_i32; 262 | ---- ^^^^^^ expected `u8`, found `i32` 263 | | 264 | expected because this is `u8` 265 | 266help: you can convert `x_u8` from `u8` to `i32`, matching the type of `-1_i32` 267 | 268LL | i32::from(x_u8) > -1_i32; 269 | ++++++++++ + 270 271error[E0308]: mismatched types 272 --> $DIR/numeric-cast-no-fix.rs:62:15 273 | 274LL | x_usize > -1_i16; 275 | ------- ^^^^^^ expected `usize`, found `i16` 276 | | 277 | expected because this is `usize` 278 | 279 = note: `-1_i16` cannot fit into type `usize` 280 281error[E0308]: mismatched types 282 --> $DIR/numeric-cast-no-fix.rs:64:14 283 | 284LL | x_u128 > -1_i16; 285 | ------ ^^^^^^ expected `u128`, found `i16` 286 | | 287 | expected because this is `u128` 288 | 289 = note: `-1_i16` cannot fit into type `u128` 290 291error[E0308]: mismatched types 292 --> $DIR/numeric-cast-no-fix.rs:66:13 293 | 294LL | x_u64 > -1_i16; 295 | ----- ^^^^^^ expected `u64`, found `i16` 296 | | 297 | expected because this is `u64` 298 | 299 = note: `-1_i16` cannot fit into type `u64` 300 301error[E0308]: mismatched types 302 --> $DIR/numeric-cast-no-fix.rs:68:13 303 | 304LL | x_u32 > -1_i16; 305 | ----- ^^^^^^ expected `u32`, found `i16` 306 | | 307 | expected because this is `u32` 308 | 309 = note: `-1_i16` cannot fit into type `u32` 310 311error[E0308]: mismatched types 312 --> $DIR/numeric-cast-no-fix.rs:70:13 313 | 314LL | x_u16 > -1_i16; 315 | ----- ^^^^^^ expected `u16`, found `i16` 316 | | 317 | expected because this is `u16` 318 | 319 = note: `-1_i16` cannot fit into type `u16` 320 321error[E0308]: mismatched types 322 --> $DIR/numeric-cast-no-fix.rs:72:12 323 | 324LL | x_u8 > -1_i16; 325 | ---- ^^^^^^ expected `u8`, found `i16` 326 | | 327 | expected because this is `u8` 328 | 329help: you can convert `x_u8` from `u8` to `i16`, matching the type of `-1_i16` 330 | 331LL | i16::from(x_u8) > -1_i16; 332 | ++++++++++ + 333 334error[E0308]: mismatched types 335 --> $DIR/numeric-cast-no-fix.rs:75:15 336 | 337LL | x_usize > -1_i8; 338 | ------- ^^^^^ expected `usize`, found `i8` 339 | | 340 | expected because this is `usize` 341 | 342 = note: `-1_i8` cannot fit into type `usize` 343 344error[E0308]: mismatched types 345 --> $DIR/numeric-cast-no-fix.rs:77:14 346 | 347LL | x_u128 > -1_i8; 348 | ------ ^^^^^ expected `u128`, found `i8` 349 | | 350 | expected because this is `u128` 351 | 352 = note: `-1_i8` cannot fit into type `u128` 353 354error[E0308]: mismatched types 355 --> $DIR/numeric-cast-no-fix.rs:79:13 356 | 357LL | x_u64 > -1_i8; 358 | ----- ^^^^^ expected `u64`, found `i8` 359 | | 360 | expected because this is `u64` 361 | 362 = note: `-1_i8` cannot fit into type `u64` 363 364error[E0308]: mismatched types 365 --> $DIR/numeric-cast-no-fix.rs:81:13 366 | 367LL | x_u32 > -1_i8; 368 | ----- ^^^^^ expected `u32`, found `i8` 369 | | 370 | expected because this is `u32` 371 | 372 = note: `-1_i8` cannot fit into type `u32` 373 374error[E0308]: mismatched types 375 --> $DIR/numeric-cast-no-fix.rs:83:13 376 | 377LL | x_u16 > -1_i8; 378 | ----- ^^^^^ expected `u16`, found `i8` 379 | | 380 | expected because this is `u16` 381 | 382 = note: `-1_i8` cannot fit into type `u16` 383 384error[E0308]: mismatched types 385 --> $DIR/numeric-cast-no-fix.rs:85:12 386 | 387LL | x_u8 > -1_i8; 388 | ---- ^^^^^ expected `u8`, found `i8` 389 | | 390 | expected because this is `u8` 391 | 392 = note: `-1_i8` cannot fit into type `u8` 393 394error: aborting due to 36 previous errors 395 396For more information about this error, try `rustc --explain E0308`.