]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
ba9703b0 | 2 | --> $DIR/integer-literal-suffix-inference.rs:38:11 |
b7449926 XL |
3 | | |
4 | LL | id_i8(a16); | |
60c5eb7d | 5 | | ^^^ expected `i8`, found `i16` |
e74abb32 | 6 | | |
48663c56 XL |
7 | help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit |
8 | | | |
9 | LL | id_i8(a16.try_into().unwrap()); | |
10 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
11 | |
12 | error[E0308]: mismatched types | |
ba9703b0 | 13 | --> $DIR/integer-literal-suffix-inference.rs:41:11 |
b7449926 XL |
14 | | |
15 | LL | id_i8(a32); | |
60c5eb7d | 16 | | ^^^ expected `i8`, found `i32` |
e74abb32 | 17 | | |
48663c56 XL |
18 | help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit |
19 | | | |
20 | LL | id_i8(a32.try_into().unwrap()); | |
21 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
22 | |
23 | error[E0308]: mismatched types | |
ba9703b0 | 24 | --> $DIR/integer-literal-suffix-inference.rs:44:11 |
b7449926 XL |
25 | | |
26 | LL | id_i8(a64); | |
60c5eb7d | 27 | | ^^^ expected `i8`, found `i64` |
e74abb32 | 28 | | |
48663c56 XL |
29 | help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit |
30 | | | |
31 | LL | id_i8(a64.try_into().unwrap()); | |
32 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
33 | |
34 | error[E0308]: mismatched types | |
ba9703b0 XL |
35 | --> $DIR/integer-literal-suffix-inference.rs:47:11 |
36 | | | |
37 | LL | id_i8(asize); | |
38 | | ^^^^^ expected `i8`, found `isize` | |
39 | | | |
40 | help: you can convert an `isize` to `i8` and panic if the converted value wouldn't fit | |
41 | | | |
42 | LL | id_i8(asize.try_into().unwrap()); | |
43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
44 | ||
45 | error[E0308]: mismatched types | |
46 | --> $DIR/integer-literal-suffix-inference.rs:51:12 | |
b7449926 XL |
47 | | |
48 | LL | id_i16(a8); | |
48663c56 XL |
49 | | ^^ |
50 | | | | |
60c5eb7d | 51 | | expected `i16`, found `i8` |
48663c56 | 52 | | help: you can convert an `i8` to `i16`: `a8.into()` |
b7449926 XL |
53 | |
54 | error[E0308]: mismatched types | |
ba9703b0 | 55 | --> $DIR/integer-literal-suffix-inference.rs:55:12 |
b7449926 XL |
56 | | |
57 | LL | id_i16(a32); | |
60c5eb7d | 58 | | ^^^ expected `i16`, found `i32` |
e74abb32 | 59 | | |
48663c56 XL |
60 | help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit |
61 | | | |
62 | LL | id_i16(a32.try_into().unwrap()); | |
63 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
64 | |
65 | error[E0308]: mismatched types | |
ba9703b0 | 66 | --> $DIR/integer-literal-suffix-inference.rs:58:12 |
b7449926 XL |
67 | | |
68 | LL | id_i16(a64); | |
60c5eb7d | 69 | | ^^^ expected `i16`, found `i64` |
e74abb32 | 70 | | |
48663c56 XL |
71 | help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit |
72 | | | |
73 | LL | id_i16(a64.try_into().unwrap()); | |
74 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
75 | |
76 | error[E0308]: mismatched types | |
ba9703b0 XL |
77 | --> $DIR/integer-literal-suffix-inference.rs:61:12 |
78 | | | |
79 | LL | id_i16(asize); | |
80 | | ^^^^^ expected `i16`, found `isize` | |
81 | | | |
82 | help: you can convert an `isize` to `i16` and panic if the converted value wouldn't fit | |
83 | | | |
84 | LL | id_i16(asize.try_into().unwrap()); | |
85 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
86 | ||
87 | error[E0308]: mismatched types | |
88 | --> $DIR/integer-literal-suffix-inference.rs:65:12 | |
b7449926 XL |
89 | | |
90 | LL | id_i32(a8); | |
48663c56 XL |
91 | | ^^ |
92 | | | | |
60c5eb7d | 93 | | expected `i32`, found `i8` |
48663c56 | 94 | | help: you can convert an `i8` to `i32`: `a8.into()` |
b7449926 XL |
95 | |
96 | error[E0308]: mismatched types | |
ba9703b0 | 97 | --> $DIR/integer-literal-suffix-inference.rs:68:12 |
b7449926 XL |
98 | | |
99 | LL | id_i32(a16); | |
48663c56 XL |
100 | | ^^^ |
101 | | | | |
60c5eb7d | 102 | | expected `i32`, found `i16` |
48663c56 | 103 | | help: you can convert an `i16` to `i32`: `a16.into()` |
b7449926 XL |
104 | |
105 | error[E0308]: mismatched types | |
ba9703b0 | 106 | --> $DIR/integer-literal-suffix-inference.rs:72:12 |
b7449926 XL |
107 | | |
108 | LL | id_i32(a64); | |
60c5eb7d | 109 | | ^^^ expected `i32`, found `i64` |
e74abb32 | 110 | | |
48663c56 XL |
111 | help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit |
112 | | | |
113 | LL | id_i32(a64.try_into().unwrap()); | |
114 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
115 | |
116 | error[E0308]: mismatched types | |
ba9703b0 XL |
117 | --> $DIR/integer-literal-suffix-inference.rs:75:12 |
118 | | | |
119 | LL | id_i32(asize); | |
120 | | ^^^^^ expected `i32`, found `isize` | |
121 | | | |
122 | help: you can convert an `isize` to `i32` and panic if the converted value wouldn't fit | |
123 | | | |
124 | LL | id_i32(asize.try_into().unwrap()); | |
125 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
126 | ||
127 | error[E0308]: mismatched types | |
128 | --> $DIR/integer-literal-suffix-inference.rs:79:12 | |
b7449926 XL |
129 | | |
130 | LL | id_i64(a8); | |
48663c56 XL |
131 | | ^^ |
132 | | | | |
60c5eb7d | 133 | | expected `i64`, found `i8` |
48663c56 | 134 | | help: you can convert an `i8` to `i64`: `a8.into()` |
b7449926 XL |
135 | |
136 | error[E0308]: mismatched types | |
ba9703b0 | 137 | --> $DIR/integer-literal-suffix-inference.rs:82:12 |
b7449926 XL |
138 | | |
139 | LL | id_i64(a16); | |
48663c56 XL |
140 | | ^^^ |
141 | | | | |
60c5eb7d | 142 | | expected `i64`, found `i16` |
48663c56 | 143 | | help: you can convert an `i16` to `i64`: `a16.into()` |
b7449926 XL |
144 | |
145 | error[E0308]: mismatched types | |
ba9703b0 | 146 | --> $DIR/integer-literal-suffix-inference.rs:85:12 |
b7449926 XL |
147 | | |
148 | LL | id_i64(a32); | |
48663c56 XL |
149 | | ^^^ |
150 | | | | |
60c5eb7d | 151 | | expected `i64`, found `i32` |
48663c56 | 152 | | help: you can convert an `i32` to `i64`: `a32.into()` |
b7449926 XL |
153 | |
154 | error[E0308]: mismatched types | |
ba9703b0 XL |
155 | --> $DIR/integer-literal-suffix-inference.rs:89:12 |
156 | | | |
157 | LL | id_i64(asize); | |
158 | | ^^^^^ expected `i64`, found `isize` | |
159 | | | |
160 | help: you can convert an `isize` to `i64` and panic if the converted value wouldn't fit | |
161 | | | |
162 | LL | id_i64(asize.try_into().unwrap()); | |
163 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
164 | ||
165 | error[E0308]: mismatched types | |
166 | --> $DIR/integer-literal-suffix-inference.rs:93:14 | |
167 | | | |
168 | LL | id_isize(a8); | |
169 | | ^^ | |
170 | | | | |
171 | | expected `isize`, found `i8` | |
172 | | help: you can convert an `i8` to `isize`: `a8.into()` | |
173 | ||
174 | error[E0308]: mismatched types | |
175 | --> $DIR/integer-literal-suffix-inference.rs:96:14 | |
176 | | | |
177 | LL | id_isize(a16); | |
178 | | ^^^ | |
179 | | | | |
180 | | expected `isize`, found `i16` | |
181 | | help: you can convert an `i16` to `isize`: `a16.into()` | |
182 | ||
183 | error[E0308]: mismatched types | |
184 | --> $DIR/integer-literal-suffix-inference.rs:99:14 | |
185 | | | |
186 | LL | id_isize(a32); | |
187 | | ^^^ expected `isize`, found `i32` | |
188 | | | |
189 | help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit | |
190 | | | |
191 | LL | id_isize(a32.try_into().unwrap()); | |
192 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
193 | ||
194 | error[E0308]: mismatched types | |
195 | --> $DIR/integer-literal-suffix-inference.rs:102:14 | |
196 | | | |
197 | LL | id_isize(a64); | |
198 | | ^^^ expected `isize`, found `i64` | |
199 | | | |
200 | help: you can convert an `i64` to `isize` and panic if the converted value wouldn't fit | |
201 | | | |
202 | LL | id_isize(a64.try_into().unwrap()); | |
203 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
204 | ||
205 | error[E0308]: mismatched types | |
206 | --> $DIR/integer-literal-suffix-inference.rs:108:11 | |
b7449926 XL |
207 | | |
208 | LL | id_i8(c16); | |
60c5eb7d | 209 | | ^^^ expected `i8`, found `i16` |
e74abb32 | 210 | | |
48663c56 XL |
211 | help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit |
212 | | | |
213 | LL | id_i8(c16.try_into().unwrap()); | |
214 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
215 | |
216 | error[E0308]: mismatched types | |
ba9703b0 | 217 | --> $DIR/integer-literal-suffix-inference.rs:111:11 |
b7449926 XL |
218 | | |
219 | LL | id_i8(c32); | |
60c5eb7d | 220 | | ^^^ expected `i8`, found `i32` |
e74abb32 | 221 | | |
48663c56 XL |
222 | help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit |
223 | | | |
224 | LL | id_i8(c32.try_into().unwrap()); | |
225 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
226 | |
227 | error[E0308]: mismatched types | |
ba9703b0 | 228 | --> $DIR/integer-literal-suffix-inference.rs:114:11 |
b7449926 XL |
229 | | |
230 | LL | id_i8(c64); | |
60c5eb7d | 231 | | ^^^ expected `i8`, found `i64` |
e74abb32 | 232 | | |
48663c56 XL |
233 | help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit |
234 | | | |
235 | LL | id_i8(c64.try_into().unwrap()); | |
236 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
237 | |
238 | error[E0308]: mismatched types | |
ba9703b0 | 239 | --> $DIR/integer-literal-suffix-inference.rs:118:12 |
b7449926 XL |
240 | | |
241 | LL | id_i16(c8); | |
48663c56 XL |
242 | | ^^ |
243 | | | | |
60c5eb7d | 244 | | expected `i16`, found `i8` |
48663c56 | 245 | | help: you can convert an `i8` to `i16`: `c8.into()` |
b7449926 XL |
246 | |
247 | error[E0308]: mismatched types | |
ba9703b0 | 248 | --> $DIR/integer-literal-suffix-inference.rs:122:12 |
b7449926 XL |
249 | | |
250 | LL | id_i16(c32); | |
60c5eb7d | 251 | | ^^^ expected `i16`, found `i32` |
e74abb32 | 252 | | |
48663c56 XL |
253 | help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit |
254 | | | |
255 | LL | id_i16(c32.try_into().unwrap()); | |
256 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
257 | |
258 | error[E0308]: mismatched types | |
ba9703b0 | 259 | --> $DIR/integer-literal-suffix-inference.rs:125:12 |
b7449926 XL |
260 | | |
261 | LL | id_i16(c64); | |
60c5eb7d | 262 | | ^^^ expected `i16`, found `i64` |
e74abb32 | 263 | | |
48663c56 XL |
264 | help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit |
265 | | | |
266 | LL | id_i16(c64.try_into().unwrap()); | |
267 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
268 | |
269 | error[E0308]: mismatched types | |
ba9703b0 | 270 | --> $DIR/integer-literal-suffix-inference.rs:129:12 |
b7449926 XL |
271 | | |
272 | LL | id_i32(c8); | |
48663c56 XL |
273 | | ^^ |
274 | | | | |
60c5eb7d | 275 | | expected `i32`, found `i8` |
48663c56 | 276 | | help: you can convert an `i8` to `i32`: `c8.into()` |
b7449926 XL |
277 | |
278 | error[E0308]: mismatched types | |
ba9703b0 | 279 | --> $DIR/integer-literal-suffix-inference.rs:132:12 |
b7449926 XL |
280 | | |
281 | LL | id_i32(c16); | |
48663c56 XL |
282 | | ^^^ |
283 | | | | |
60c5eb7d | 284 | | expected `i32`, found `i16` |
48663c56 | 285 | | help: you can convert an `i16` to `i32`: `c16.into()` |
b7449926 XL |
286 | |
287 | error[E0308]: mismatched types | |
ba9703b0 | 288 | --> $DIR/integer-literal-suffix-inference.rs:136:12 |
b7449926 XL |
289 | | |
290 | LL | id_i32(c64); | |
60c5eb7d | 291 | | ^^^ expected `i32`, found `i64` |
e74abb32 | 292 | | |
48663c56 XL |
293 | help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit |
294 | | | |
295 | LL | id_i32(c64.try_into().unwrap()); | |
296 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
297 | |
298 | error[E0308]: mismatched types | |
ba9703b0 | 299 | --> $DIR/integer-literal-suffix-inference.rs:140:12 |
b7449926 XL |
300 | | |
301 | LL | id_i64(a8); | |
48663c56 XL |
302 | | ^^ |
303 | | | | |
60c5eb7d | 304 | | expected `i64`, found `i8` |
48663c56 | 305 | | help: you can convert an `i8` to `i64`: `a8.into()` |
b7449926 XL |
306 | |
307 | error[E0308]: mismatched types | |
ba9703b0 | 308 | --> $DIR/integer-literal-suffix-inference.rs:143:12 |
b7449926 XL |
309 | | |
310 | LL | id_i64(a16); | |
48663c56 XL |
311 | | ^^^ |
312 | | | | |
60c5eb7d | 313 | | expected `i64`, found `i16` |
48663c56 | 314 | | help: you can convert an `i16` to `i64`: `a16.into()` |
b7449926 XL |
315 | |
316 | error[E0308]: mismatched types | |
ba9703b0 | 317 | --> $DIR/integer-literal-suffix-inference.rs:146:12 |
b7449926 XL |
318 | | |
319 | LL | id_i64(a32); | |
48663c56 XL |
320 | | ^^^ |
321 | | | | |
60c5eb7d | 322 | | expected `i64`, found `i32` |
48663c56 | 323 | | help: you can convert an `i32` to `i64`: `a32.into()` |
b7449926 XL |
324 | |
325 | error[E0308]: mismatched types | |
ba9703b0 | 326 | --> $DIR/integer-literal-suffix-inference.rs:152:11 |
b7449926 XL |
327 | | |
328 | LL | id_u8(b16); | |
60c5eb7d | 329 | | ^^^ expected `u8`, found `u16` |
e74abb32 | 330 | | |
48663c56 XL |
331 | help: you can convert an `u16` to `u8` and panic if the converted value wouldn't fit |
332 | | | |
333 | LL | id_u8(b16.try_into().unwrap()); | |
334 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
335 | |
336 | error[E0308]: mismatched types | |
ba9703b0 | 337 | --> $DIR/integer-literal-suffix-inference.rs:155:11 |
b7449926 XL |
338 | | |
339 | LL | id_u8(b32); | |
60c5eb7d | 340 | | ^^^ expected `u8`, found `u32` |
e74abb32 | 341 | | |
48663c56 XL |
342 | help: you can convert an `u32` to `u8` and panic if the converted value wouldn't fit |
343 | | | |
344 | LL | id_u8(b32.try_into().unwrap()); | |
345 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
346 | |
347 | error[E0308]: mismatched types | |
ba9703b0 | 348 | --> $DIR/integer-literal-suffix-inference.rs:158:11 |
b7449926 XL |
349 | | |
350 | LL | id_u8(b64); | |
60c5eb7d | 351 | | ^^^ expected `u8`, found `u64` |
e74abb32 | 352 | | |
48663c56 XL |
353 | help: you can convert an `u64` to `u8` and panic if the converted value wouldn't fit |
354 | | | |
355 | LL | id_u8(b64.try_into().unwrap()); | |
356 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
357 | |
358 | error[E0308]: mismatched types | |
ba9703b0 XL |
359 | --> $DIR/integer-literal-suffix-inference.rs:161:11 |
360 | | | |
361 | LL | id_u8(bsize); | |
362 | | ^^^^^ expected `u8`, found `usize` | |
363 | | | |
364 | help: you can convert an `usize` to `u8` and panic if the converted value wouldn't fit | |
365 | | | |
366 | LL | id_u8(bsize.try_into().unwrap()); | |
367 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
368 | ||
369 | error[E0308]: mismatched types | |
370 | --> $DIR/integer-literal-suffix-inference.rs:165:12 | |
b7449926 XL |
371 | | |
372 | LL | id_u16(b8); | |
48663c56 XL |
373 | | ^^ |
374 | | | | |
60c5eb7d | 375 | | expected `u16`, found `u8` |
48663c56 | 376 | | help: you can convert an `u8` to `u16`: `b8.into()` |
b7449926 XL |
377 | |
378 | error[E0308]: mismatched types | |
ba9703b0 | 379 | --> $DIR/integer-literal-suffix-inference.rs:169:12 |
b7449926 XL |
380 | | |
381 | LL | id_u16(b32); | |
60c5eb7d | 382 | | ^^^ expected `u16`, found `u32` |
e74abb32 | 383 | | |
48663c56 XL |
384 | help: you can convert an `u32` to `u16` and panic if the converted value wouldn't fit |
385 | | | |
386 | LL | id_u16(b32.try_into().unwrap()); | |
387 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
388 | |
389 | error[E0308]: mismatched types | |
ba9703b0 | 390 | --> $DIR/integer-literal-suffix-inference.rs:172:12 |
b7449926 XL |
391 | | |
392 | LL | id_u16(b64); | |
60c5eb7d | 393 | | ^^^ expected `u16`, found `u64` |
e74abb32 | 394 | | |
48663c56 XL |
395 | help: you can convert an `u64` to `u16` and panic if the converted value wouldn't fit |
396 | | | |
397 | LL | id_u16(b64.try_into().unwrap()); | |
398 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
399 | |
400 | error[E0308]: mismatched types | |
ba9703b0 XL |
401 | --> $DIR/integer-literal-suffix-inference.rs:175:12 |
402 | | | |
403 | LL | id_u16(bsize); | |
404 | | ^^^^^ expected `u16`, found `usize` | |
405 | | | |
406 | help: you can convert an `usize` to `u16` and panic if the converted value wouldn't fit | |
407 | | | |
408 | LL | id_u16(bsize.try_into().unwrap()); | |
409 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
410 | ||
411 | error[E0308]: mismatched types | |
412 | --> $DIR/integer-literal-suffix-inference.rs:179:12 | |
b7449926 XL |
413 | | |
414 | LL | id_u32(b8); | |
48663c56 XL |
415 | | ^^ |
416 | | | | |
60c5eb7d | 417 | | expected `u32`, found `u8` |
48663c56 | 418 | | help: you can convert an `u8` to `u32`: `b8.into()` |
b7449926 XL |
419 | |
420 | error[E0308]: mismatched types | |
ba9703b0 | 421 | --> $DIR/integer-literal-suffix-inference.rs:182:12 |
b7449926 XL |
422 | | |
423 | LL | id_u32(b16); | |
48663c56 XL |
424 | | ^^^ |
425 | | | | |
60c5eb7d | 426 | | expected `u32`, found `u16` |
48663c56 | 427 | | help: you can convert an `u16` to `u32`: `b16.into()` |
b7449926 XL |
428 | |
429 | error[E0308]: mismatched types | |
ba9703b0 | 430 | --> $DIR/integer-literal-suffix-inference.rs:186:12 |
b7449926 XL |
431 | | |
432 | LL | id_u32(b64); | |
60c5eb7d | 433 | | ^^^ expected `u32`, found `u64` |
e74abb32 | 434 | | |
48663c56 XL |
435 | help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit |
436 | | | |
437 | LL | id_u32(b64.try_into().unwrap()); | |
438 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
439 | |
440 | error[E0308]: mismatched types | |
ba9703b0 XL |
441 | --> $DIR/integer-literal-suffix-inference.rs:189:12 |
442 | | | |
443 | LL | id_u32(bsize); | |
444 | | ^^^^^ expected `u32`, found `usize` | |
445 | | | |
446 | help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit | |
447 | | | |
448 | LL | id_u32(bsize.try_into().unwrap()); | |
449 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
450 | ||
451 | error[E0308]: mismatched types | |
452 | --> $DIR/integer-literal-suffix-inference.rs:193:12 | |
b7449926 XL |
453 | | |
454 | LL | id_u64(b8); | |
48663c56 XL |
455 | | ^^ |
456 | | | | |
60c5eb7d | 457 | | expected `u64`, found `u8` |
48663c56 | 458 | | help: you can convert an `u8` to `u64`: `b8.into()` |
b7449926 XL |
459 | |
460 | error[E0308]: mismatched types | |
ba9703b0 | 461 | --> $DIR/integer-literal-suffix-inference.rs:196:12 |
b7449926 XL |
462 | | |
463 | LL | id_u64(b16); | |
48663c56 XL |
464 | | ^^^ |
465 | | | | |
60c5eb7d | 466 | | expected `u64`, found `u16` |
48663c56 | 467 | | help: you can convert an `u16` to `u64`: `b16.into()` |
b7449926 XL |
468 | |
469 | error[E0308]: mismatched types | |
ba9703b0 | 470 | --> $DIR/integer-literal-suffix-inference.rs:199:12 |
b7449926 XL |
471 | | |
472 | LL | id_u64(b32); | |
48663c56 XL |
473 | | ^^^ |
474 | | | | |
60c5eb7d | 475 | | expected `u64`, found `u32` |
48663c56 | 476 | | help: you can convert an `u32` to `u64`: `b32.into()` |
b7449926 | 477 | |
ba9703b0 XL |
478 | error[E0308]: mismatched types |
479 | --> $DIR/integer-literal-suffix-inference.rs:203:12 | |
480 | | | |
481 | LL | id_u64(bsize); | |
482 | | ^^^^^ expected `u64`, found `usize` | |
483 | | | |
484 | help: you can convert an `usize` to `u64` and panic if the converted value wouldn't fit | |
485 | | | |
486 | LL | id_u64(bsize.try_into().unwrap()); | |
487 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
488 | ||
489 | error[E0308]: mismatched types | |
490 | --> $DIR/integer-literal-suffix-inference.rs:207:14 | |
491 | | | |
492 | LL | id_usize(b8); | |
493 | | ^^ | |
494 | | | | |
495 | | expected `usize`, found `u8` | |
496 | | help: you can convert an `u8` to `usize`: `b8.into()` | |
497 | ||
498 | error[E0308]: mismatched types | |
499 | --> $DIR/integer-literal-suffix-inference.rs:210:14 | |
500 | | | |
501 | LL | id_usize(b16); | |
502 | | ^^^ | |
503 | | | | |
504 | | expected `usize`, found `u16` | |
505 | | help: you can convert an `u16` to `usize`: `b16.into()` | |
506 | ||
507 | error[E0308]: mismatched types | |
508 | --> $DIR/integer-literal-suffix-inference.rs:213:14 | |
509 | | | |
510 | LL | id_usize(b32); | |
511 | | ^^^ expected `usize`, found `u32` | |
512 | | | |
513 | help: you can convert an `u32` to `usize` and panic if the converted value wouldn't fit | |
514 | | | |
515 | LL | id_usize(b32.try_into().unwrap()); | |
516 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
517 | ||
518 | error[E0308]: mismatched types | |
519 | --> $DIR/integer-literal-suffix-inference.rs:216:14 | |
520 | | | |
521 | LL | id_usize(b64); | |
522 | | ^^^ expected `usize`, found `u64` | |
523 | | | |
524 | help: you can convert an `u64` to `usize` and panic if the converted value wouldn't fit | |
525 | | | |
526 | LL | id_usize(b64.try_into().unwrap()); | |
527 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
528 | ||
529 | error: aborting due to 52 previous errors | |
b7449926 XL |
530 | |
531 | For more information about this error, try `rustc --explain E0308`. |