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