]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integer-literal-suffix-inference.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / integer-literal-suffix-inference.stderr
1 error[E0308]: mismatched types
2   --> $DIR/integer-literal-suffix-inference.rs:42:11
3    |
4 LL |     id_i8(a16);
5    |           ^^^ expected i8, found i16
6
7 error[E0308]: mismatched types
8   --> $DIR/integer-literal-suffix-inference.rs:45:11
9    |
10 LL |     id_i8(a32);
11    |           ^^^ expected i8, found i32
12
13 error[E0308]: mismatched types
14   --> $DIR/integer-literal-suffix-inference.rs:48:11
15    |
16 LL |     id_i8(a64);
17    |           ^^^ expected i8, found i64
18
19 error[E0308]: mismatched types
20   --> $DIR/integer-literal-suffix-inference.rs:52:12
21    |
22 LL |     id_i16(a8);
23    |            ^^ expected i16, found i8
24 help: you can cast an `i8` to `i16`, which will sign-extend the source value
25    |
26 LL |     id_i16(a8.into());
27    |            ^^^^^^^^^
28
29 error[E0308]: mismatched types
30   --> $DIR/integer-literal-suffix-inference.rs:56:12
31    |
32 LL |     id_i16(a32);
33    |            ^^^ expected i16, found i32
34
35 error[E0308]: mismatched types
36   --> $DIR/integer-literal-suffix-inference.rs:59:12
37    |
38 LL |     id_i16(a64);
39    |            ^^^ expected i16, found i64
40
41 error[E0308]: mismatched types
42   --> $DIR/integer-literal-suffix-inference.rs:63:12
43    |
44 LL |     id_i32(a8);
45    |            ^^ expected i32, found i8
46 help: you can cast an `i8` to `i32`, which will sign-extend the source value
47    |
48 LL |     id_i32(a8.into());
49    |            ^^^^^^^^^
50
51 error[E0308]: mismatched types
52   --> $DIR/integer-literal-suffix-inference.rs:66:12
53    |
54 LL |     id_i32(a16);
55    |            ^^^ expected i32, found i16
56 help: you can cast an `i16` to `i32`, which will sign-extend the source value
57    |
58 LL |     id_i32(a16.into());
59    |            ^^^^^^^^^^
60
61 error[E0308]: mismatched types
62   --> $DIR/integer-literal-suffix-inference.rs:70:12
63    |
64 LL |     id_i32(a64);
65    |            ^^^ expected i32, found i64
66
67 error[E0308]: mismatched types
68   --> $DIR/integer-literal-suffix-inference.rs:74:12
69    |
70 LL |     id_i64(a8);
71    |            ^^ expected i64, found i8
72 help: you can cast an `i8` to `i64`, which will sign-extend the source value
73    |
74 LL |     id_i64(a8.into());
75    |            ^^^^^^^^^
76
77 error[E0308]: mismatched types
78   --> $DIR/integer-literal-suffix-inference.rs:77:12
79    |
80 LL |     id_i64(a16);
81    |            ^^^ expected i64, found i16
82 help: you can cast an `i16` to `i64`, which will sign-extend the source value
83    |
84 LL |     id_i64(a16.into());
85    |            ^^^^^^^^^^
86
87 error[E0308]: mismatched types
88   --> $DIR/integer-literal-suffix-inference.rs:80:12
89    |
90 LL |     id_i64(a32);
91    |            ^^^ expected i64, found i32
92 help: you can cast an `i32` to `i64`, which will sign-extend the source value
93    |
94 LL |     id_i64(a32.into());
95    |            ^^^^^^^^^^
96
97 error[E0308]: mismatched types
98   --> $DIR/integer-literal-suffix-inference.rs:86:11
99    |
100 LL |     id_i8(c16);
101    |           ^^^ expected i8, found i16
102
103 error[E0308]: mismatched types
104   --> $DIR/integer-literal-suffix-inference.rs:89:11
105    |
106 LL |     id_i8(c32);
107    |           ^^^ expected i8, found i32
108
109 error[E0308]: mismatched types
110   --> $DIR/integer-literal-suffix-inference.rs:92:11
111    |
112 LL |     id_i8(c64);
113    |           ^^^ expected i8, found i64
114
115 error[E0308]: mismatched types
116   --> $DIR/integer-literal-suffix-inference.rs:96:12
117    |
118 LL |     id_i16(c8);
119    |            ^^ expected i16, found i8
120 help: you can cast an `i8` to `i16`, which will sign-extend the source value
121    |
122 LL |     id_i16(c8.into());
123    |            ^^^^^^^^^
124
125 error[E0308]: mismatched types
126   --> $DIR/integer-literal-suffix-inference.rs:100:12
127    |
128 LL |     id_i16(c32);
129    |            ^^^ expected i16, found i32
130
131 error[E0308]: mismatched types
132   --> $DIR/integer-literal-suffix-inference.rs:103:12
133    |
134 LL |     id_i16(c64);
135    |            ^^^ expected i16, found i64
136
137 error[E0308]: mismatched types
138   --> $DIR/integer-literal-suffix-inference.rs:107:12
139    |
140 LL |     id_i32(c8);
141    |            ^^ expected i32, found i8
142 help: you can cast an `i8` to `i32`, which will sign-extend the source value
143    |
144 LL |     id_i32(c8.into());
145    |            ^^^^^^^^^
146
147 error[E0308]: mismatched types
148   --> $DIR/integer-literal-suffix-inference.rs:110:12
149    |
150 LL |     id_i32(c16);
151    |            ^^^ expected i32, found i16
152 help: you can cast an `i16` to `i32`, which will sign-extend the source value
153    |
154 LL |     id_i32(c16.into());
155    |            ^^^^^^^^^^
156
157 error[E0308]: mismatched types
158   --> $DIR/integer-literal-suffix-inference.rs:114:12
159    |
160 LL |     id_i32(c64);
161    |            ^^^ expected i32, found i64
162
163 error[E0308]: mismatched types
164   --> $DIR/integer-literal-suffix-inference.rs:118:12
165    |
166 LL |     id_i64(a8);
167    |            ^^ expected i64, found i8
168 help: you can cast an `i8` to `i64`, which will sign-extend the source value
169    |
170 LL |     id_i64(a8.into());
171    |            ^^^^^^^^^
172
173 error[E0308]: mismatched types
174   --> $DIR/integer-literal-suffix-inference.rs:121:12
175    |
176 LL |     id_i64(a16);
177    |            ^^^ expected i64, found i16
178 help: you can cast an `i16` to `i64`, which will sign-extend the source value
179    |
180 LL |     id_i64(a16.into());
181    |            ^^^^^^^^^^
182
183 error[E0308]: mismatched types
184   --> $DIR/integer-literal-suffix-inference.rs:124:12
185    |
186 LL |     id_i64(a32);
187    |            ^^^ expected i64, found i32
188 help: you can cast an `i32` to `i64`, which will sign-extend the source value
189    |
190 LL |     id_i64(a32.into());
191    |            ^^^^^^^^^^
192
193 error[E0308]: mismatched types
194   --> $DIR/integer-literal-suffix-inference.rs:130:11
195    |
196 LL |     id_u8(b16);
197    |           ^^^ expected u8, found u16
198
199 error[E0308]: mismatched types
200   --> $DIR/integer-literal-suffix-inference.rs:133:11
201    |
202 LL |     id_u8(b32);
203    |           ^^^ expected u8, found u32
204
205 error[E0308]: mismatched types
206   --> $DIR/integer-literal-suffix-inference.rs:136:11
207    |
208 LL |     id_u8(b64);
209    |           ^^^ expected u8, found u64
210
211 error[E0308]: mismatched types
212   --> $DIR/integer-literal-suffix-inference.rs:140:12
213    |
214 LL |     id_u16(b8);
215    |            ^^ expected u16, found u8
216 help: you can cast an `u8` to `u16`, which will zero-extend the source value
217    |
218 LL |     id_u16(b8.into());
219    |            ^^^^^^^^^
220
221 error[E0308]: mismatched types
222   --> $DIR/integer-literal-suffix-inference.rs:144:12
223    |
224 LL |     id_u16(b32);
225    |            ^^^ expected u16, found u32
226
227 error[E0308]: mismatched types
228   --> $DIR/integer-literal-suffix-inference.rs:147:12
229    |
230 LL |     id_u16(b64);
231    |            ^^^ expected u16, found u64
232
233 error[E0308]: mismatched types
234   --> $DIR/integer-literal-suffix-inference.rs:151:12
235    |
236 LL |     id_u32(b8);
237    |            ^^ expected u32, found u8
238 help: you can cast an `u8` to `u32`, which will zero-extend the source value
239    |
240 LL |     id_u32(b8.into());
241    |            ^^^^^^^^^
242
243 error[E0308]: mismatched types
244   --> $DIR/integer-literal-suffix-inference.rs:154:12
245    |
246 LL |     id_u32(b16);
247    |            ^^^ expected u32, found u16
248 help: you can cast an `u16` to `u32`, which will zero-extend the source value
249    |
250 LL |     id_u32(b16.into());
251    |            ^^^^^^^^^^
252
253 error[E0308]: mismatched types
254   --> $DIR/integer-literal-suffix-inference.rs:158:12
255    |
256 LL |     id_u32(b64);
257    |            ^^^ expected u32, found u64
258
259 error[E0308]: mismatched types
260   --> $DIR/integer-literal-suffix-inference.rs:162:12
261    |
262 LL |     id_u64(b8);
263    |            ^^ expected u64, found u8
264 help: you can cast an `u8` to `u64`, which will zero-extend the source value
265    |
266 LL |     id_u64(b8.into());
267    |            ^^^^^^^^^
268
269 error[E0308]: mismatched types
270   --> $DIR/integer-literal-suffix-inference.rs:165:12
271    |
272 LL |     id_u64(b16);
273    |            ^^^ expected u64, found u16
274 help: you can cast an `u16` to `u64`, which will zero-extend the source value
275    |
276 LL |     id_u64(b16.into());
277    |            ^^^^^^^^^^
278
279 error[E0308]: mismatched types
280   --> $DIR/integer-literal-suffix-inference.rs:168:12
281    |
282 LL |     id_u64(b32);
283    |            ^^^ expected u64, found u32
284 help: you can cast an `u32` to `u64`, which will zero-extend the source value
285    |
286 LL |     id_u64(b32.into());
287    |            ^^^^^^^^^^
288
289 error: aborting due to 36 previous errors
290
291 For more information about this error, try `rustc --explain E0308`.