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