1 error[E0308]: mismatched types
2 --> $DIR/integer-literal-suffix-inference.rs:32:11
5 | ^^^ expected i8, found i16
6 help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
8 LL | id_i8(a16.try_into().unwrap());
9 | ^^^^^^^^^^^^^^^^^^^^^^^
11 error[E0308]: mismatched types
12 --> $DIR/integer-literal-suffix-inference.rs:35:11
15 | ^^^ expected i8, found i32
16 help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
18 LL | id_i8(a32.try_into().unwrap());
19 | ^^^^^^^^^^^^^^^^^^^^^^^
21 error[E0308]: mismatched types
22 --> $DIR/integer-literal-suffix-inference.rs:38:11
25 | ^^^ expected i8, found i64
26 help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
28 LL | id_i8(a64.try_into().unwrap());
29 | ^^^^^^^^^^^^^^^^^^^^^^^
31 error[E0308]: mismatched types
32 --> $DIR/integer-literal-suffix-inference.rs:42:12
37 | expected i16, found i8
38 | help: you can convert an `i8` to `i16`: `a8.into()`
40 error[E0308]: mismatched types
41 --> $DIR/integer-literal-suffix-inference.rs:46:12
44 | ^^^ expected i16, found i32
45 help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
47 LL | id_i16(a32.try_into().unwrap());
48 | ^^^^^^^^^^^^^^^^^^^^^^^
50 error[E0308]: mismatched types
51 --> $DIR/integer-literal-suffix-inference.rs:49:12
54 | ^^^ expected i16, found i64
55 help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
57 LL | id_i16(a64.try_into().unwrap());
58 | ^^^^^^^^^^^^^^^^^^^^^^^
60 error[E0308]: mismatched types
61 --> $DIR/integer-literal-suffix-inference.rs:53:12
66 | expected i32, found i8
67 | help: you can convert an `i8` to `i32`: `a8.into()`
69 error[E0308]: mismatched types
70 --> $DIR/integer-literal-suffix-inference.rs:56:12
75 | expected i32, found i16
76 | help: you can convert an `i16` to `i32`: `a16.into()`
78 error[E0308]: mismatched types
79 --> $DIR/integer-literal-suffix-inference.rs:60:12
82 | ^^^ expected i32, found i64
83 help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
85 LL | id_i32(a64.try_into().unwrap());
86 | ^^^^^^^^^^^^^^^^^^^^^^^
88 error[E0308]: mismatched types
89 --> $DIR/integer-literal-suffix-inference.rs:64:12
94 | expected i64, found i8
95 | help: you can convert an `i8` to `i64`: `a8.into()`
97 error[E0308]: mismatched types
98 --> $DIR/integer-literal-suffix-inference.rs:67:12
103 | expected i64, found i16
104 | help: you can convert an `i16` to `i64`: `a16.into()`
106 error[E0308]: mismatched types
107 --> $DIR/integer-literal-suffix-inference.rs:70:12
112 | expected i64, found i32
113 | help: you can convert an `i32` to `i64`: `a32.into()`
115 error[E0308]: mismatched types
116 --> $DIR/integer-literal-suffix-inference.rs:76:11
119 | ^^^ expected i8, found i16
120 help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
122 LL | id_i8(c16.try_into().unwrap());
123 | ^^^^^^^^^^^^^^^^^^^^^^^
125 error[E0308]: mismatched types
126 --> $DIR/integer-literal-suffix-inference.rs:79:11
129 | ^^^ expected i8, found i32
130 help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
132 LL | id_i8(c32.try_into().unwrap());
133 | ^^^^^^^^^^^^^^^^^^^^^^^
135 error[E0308]: mismatched types
136 --> $DIR/integer-literal-suffix-inference.rs:82:11
139 | ^^^ expected i8, found i64
140 help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
142 LL | id_i8(c64.try_into().unwrap());
143 | ^^^^^^^^^^^^^^^^^^^^^^^
145 error[E0308]: mismatched types
146 --> $DIR/integer-literal-suffix-inference.rs:86:12
151 | expected i16, found i8
152 | help: you can convert an `i8` to `i16`: `c8.into()`
154 error[E0308]: mismatched types
155 --> $DIR/integer-literal-suffix-inference.rs:90:12
158 | ^^^ expected i16, found i32
159 help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
161 LL | id_i16(c32.try_into().unwrap());
162 | ^^^^^^^^^^^^^^^^^^^^^^^
164 error[E0308]: mismatched types
165 --> $DIR/integer-literal-suffix-inference.rs:93:12
168 | ^^^ expected i16, found i64
169 help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
171 LL | id_i16(c64.try_into().unwrap());
172 | ^^^^^^^^^^^^^^^^^^^^^^^
174 error[E0308]: mismatched types
175 --> $DIR/integer-literal-suffix-inference.rs:97:12
180 | expected i32, found i8
181 | help: you can convert an `i8` to `i32`: `c8.into()`
183 error[E0308]: mismatched types
184 --> $DIR/integer-literal-suffix-inference.rs:100:12
189 | expected i32, found i16
190 | help: you can convert an `i16` to `i32`: `c16.into()`
192 error[E0308]: mismatched types
193 --> $DIR/integer-literal-suffix-inference.rs:104:12
196 | ^^^ expected i32, found i64
197 help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
199 LL | id_i32(c64.try_into().unwrap());
200 | ^^^^^^^^^^^^^^^^^^^^^^^
202 error[E0308]: mismatched types
203 --> $DIR/integer-literal-suffix-inference.rs:108:12
208 | expected i64, found i8
209 | help: you can convert an `i8` to `i64`: `a8.into()`
211 error[E0308]: mismatched types
212 --> $DIR/integer-literal-suffix-inference.rs:111:12
217 | expected i64, found i16
218 | help: you can convert an `i16` to `i64`: `a16.into()`
220 error[E0308]: mismatched types
221 --> $DIR/integer-literal-suffix-inference.rs:114:12
226 | expected i64, found i32
227 | help: you can convert an `i32` to `i64`: `a32.into()`
229 error[E0308]: mismatched types
230 --> $DIR/integer-literal-suffix-inference.rs:120:11
233 | ^^^ expected u8, found u16
234 help: you can convert an `u16` to `u8` and panic if the converted value wouldn't fit
236 LL | id_u8(b16.try_into().unwrap());
237 | ^^^^^^^^^^^^^^^^^^^^^^^
239 error[E0308]: mismatched types
240 --> $DIR/integer-literal-suffix-inference.rs:123:11
243 | ^^^ expected u8, found u32
244 help: you can convert an `u32` to `u8` and panic if the converted value wouldn't fit
246 LL | id_u8(b32.try_into().unwrap());
247 | ^^^^^^^^^^^^^^^^^^^^^^^
249 error[E0308]: mismatched types
250 --> $DIR/integer-literal-suffix-inference.rs:126:11
253 | ^^^ expected u8, found u64
254 help: you can convert an `u64` to `u8` and panic if the converted value wouldn't fit
256 LL | id_u8(b64.try_into().unwrap());
257 | ^^^^^^^^^^^^^^^^^^^^^^^
259 error[E0308]: mismatched types
260 --> $DIR/integer-literal-suffix-inference.rs:130:12
265 | expected u16, found u8
266 | help: you can convert an `u8` to `u16`: `b8.into()`
268 error[E0308]: mismatched types
269 --> $DIR/integer-literal-suffix-inference.rs:134:12
272 | ^^^ expected u16, found u32
273 help: you can convert an `u32` to `u16` and panic if the converted value wouldn't fit
275 LL | id_u16(b32.try_into().unwrap());
276 | ^^^^^^^^^^^^^^^^^^^^^^^
278 error[E0308]: mismatched types
279 --> $DIR/integer-literal-suffix-inference.rs:137:12
282 | ^^^ expected u16, found u64
283 help: you can convert an `u64` to `u16` and panic if the converted value wouldn't fit
285 LL | id_u16(b64.try_into().unwrap());
286 | ^^^^^^^^^^^^^^^^^^^^^^^
288 error[E0308]: mismatched types
289 --> $DIR/integer-literal-suffix-inference.rs:141:12
294 | expected u32, found u8
295 | help: you can convert an `u8` to `u32`: `b8.into()`
297 error[E0308]: mismatched types
298 --> $DIR/integer-literal-suffix-inference.rs:144:12
303 | expected u32, found u16
304 | help: you can convert an `u16` to `u32`: `b16.into()`
306 error[E0308]: mismatched types
307 --> $DIR/integer-literal-suffix-inference.rs:148:12
310 | ^^^ expected u32, found u64
311 help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
313 LL | id_u32(b64.try_into().unwrap());
314 | ^^^^^^^^^^^^^^^^^^^^^^^
316 error[E0308]: mismatched types
317 --> $DIR/integer-literal-suffix-inference.rs:152:12
322 | expected u64, found u8
323 | help: you can convert an `u8` to `u64`: `b8.into()`
325 error[E0308]: mismatched types
326 --> $DIR/integer-literal-suffix-inference.rs:155:12
331 | expected u64, found u16
332 | help: you can convert an `u16` to `u64`: `b16.into()`
334 error[E0308]: mismatched types
335 --> $DIR/integer-literal-suffix-inference.rs:158:12
340 | expected u64, found u32
341 | help: you can convert an `u32` to `u64`: `b32.into()`
343 error: aborting due to 36 previous errors
345 For more information about this error, try `rustc --explain E0308`.