1 error[E0308]: mismatched types
2 --> $DIR/integer-literal-suffix-inference.rs:42:11
5 | ^^^ expected i8, found i16
7 error[E0308]: mismatched types
8 --> $DIR/integer-literal-suffix-inference.rs:45:11
11 | ^^^ expected i8, found i32
13 error[E0308]: mismatched types
14 --> $DIR/integer-literal-suffix-inference.rs:48:11
17 | ^^^ expected i8, found i64
19 error[E0308]: mismatched types
20 --> $DIR/integer-literal-suffix-inference.rs:52:12
23 | ^^ expected i16, found i8
24 help: you can cast an `i8` to `i16`, which will sign-extend the source value
26 LL | id_i16(a8.into());
29 error[E0308]: mismatched types
30 --> $DIR/integer-literal-suffix-inference.rs:56:12
33 | ^^^ expected i16, found i32
35 error[E0308]: mismatched types
36 --> $DIR/integer-literal-suffix-inference.rs:59:12
39 | ^^^ expected i16, found i64
41 error[E0308]: mismatched types
42 --> $DIR/integer-literal-suffix-inference.rs:63:12
45 | ^^ expected i32, found i8
46 help: you can cast an `i8` to `i32`, which will sign-extend the source value
48 LL | id_i32(a8.into());
51 error[E0308]: mismatched types
52 --> $DIR/integer-literal-suffix-inference.rs:66:12
55 | ^^^ expected i32, found i16
56 help: you can cast an `i16` to `i32`, which will sign-extend the source value
58 LL | id_i32(a16.into());
61 error[E0308]: mismatched types
62 --> $DIR/integer-literal-suffix-inference.rs:70:12
65 | ^^^ expected i32, found i64
67 error[E0308]: mismatched types
68 --> $DIR/integer-literal-suffix-inference.rs:74:12
71 | ^^ expected i64, found i8
72 help: you can cast an `i8` to `i64`, which will sign-extend the source value
74 LL | id_i64(a8.into());
77 error[E0308]: mismatched types
78 --> $DIR/integer-literal-suffix-inference.rs:77:12
81 | ^^^ expected i64, found i16
82 help: you can cast an `i16` to `i64`, which will sign-extend the source value
84 LL | id_i64(a16.into());
87 error[E0308]: mismatched types
88 --> $DIR/integer-literal-suffix-inference.rs:80:12
91 | ^^^ expected i64, found i32
92 help: you can cast an `i32` to `i64`, which will sign-extend the source value
94 LL | id_i64(a32.into());
97 error[E0308]: mismatched types
98 --> $DIR/integer-literal-suffix-inference.rs:86:11
101 | ^^^ expected i8, found i16
103 error[E0308]: mismatched types
104 --> $DIR/integer-literal-suffix-inference.rs:89:11
107 | ^^^ expected i8, found i32
109 error[E0308]: mismatched types
110 --> $DIR/integer-literal-suffix-inference.rs:92:11
113 | ^^^ expected i8, found i64
115 error[E0308]: mismatched types
116 --> $DIR/integer-literal-suffix-inference.rs:96:12
119 | ^^ expected i16, found i8
120 help: you can cast an `i8` to `i16`, which will sign-extend the source value
122 LL | id_i16(c8.into());
125 error[E0308]: mismatched types
126 --> $DIR/integer-literal-suffix-inference.rs:100:12
129 | ^^^ expected i16, found i32
131 error[E0308]: mismatched types
132 --> $DIR/integer-literal-suffix-inference.rs:103:12
135 | ^^^ expected i16, found i64
137 error[E0308]: mismatched types
138 --> $DIR/integer-literal-suffix-inference.rs:107:12
141 | ^^ expected i32, found i8
142 help: you can cast an `i8` to `i32`, which will sign-extend the source value
144 LL | id_i32(c8.into());
147 error[E0308]: mismatched types
148 --> $DIR/integer-literal-suffix-inference.rs:110:12
151 | ^^^ expected i32, found i16
152 help: you can cast an `i16` to `i32`, which will sign-extend the source value
154 LL | id_i32(c16.into());
157 error[E0308]: mismatched types
158 --> $DIR/integer-literal-suffix-inference.rs:114:12
161 | ^^^ expected i32, found i64
163 error[E0308]: mismatched types
164 --> $DIR/integer-literal-suffix-inference.rs:118:12
167 | ^^ expected i64, found i8
168 help: you can cast an `i8` to `i64`, which will sign-extend the source value
170 LL | id_i64(a8.into());
173 error[E0308]: mismatched types
174 --> $DIR/integer-literal-suffix-inference.rs:121:12
177 | ^^^ expected i64, found i16
178 help: you can cast an `i16` to `i64`, which will sign-extend the source value
180 LL | id_i64(a16.into());
183 error[E0308]: mismatched types
184 --> $DIR/integer-literal-suffix-inference.rs:124:12
187 | ^^^ expected i64, found i32
188 help: you can cast an `i32` to `i64`, which will sign-extend the source value
190 LL | id_i64(a32.into());
193 error[E0308]: mismatched types
194 --> $DIR/integer-literal-suffix-inference.rs:130:11
197 | ^^^ expected u8, found u16
199 error[E0308]: mismatched types
200 --> $DIR/integer-literal-suffix-inference.rs:133:11
203 | ^^^ expected u8, found u32
205 error[E0308]: mismatched types
206 --> $DIR/integer-literal-suffix-inference.rs:136:11
209 | ^^^ expected u8, found u64
211 error[E0308]: mismatched types
212 --> $DIR/integer-literal-suffix-inference.rs:140:12
215 | ^^ expected u16, found u8
216 help: you can cast an `u8` to `u16`, which will zero-extend the source value
218 LL | id_u16(b8.into());
221 error[E0308]: mismatched types
222 --> $DIR/integer-literal-suffix-inference.rs:144:12
225 | ^^^ expected u16, found u32
227 error[E0308]: mismatched types
228 --> $DIR/integer-literal-suffix-inference.rs:147:12
231 | ^^^ expected u16, found u64
233 error[E0308]: mismatched types
234 --> $DIR/integer-literal-suffix-inference.rs:151:12
237 | ^^ expected u32, found u8
238 help: you can cast an `u8` to `u32`, which will zero-extend the source value
240 LL | id_u32(b8.into());
243 error[E0308]: mismatched types
244 --> $DIR/integer-literal-suffix-inference.rs:154:12
247 | ^^^ expected u32, found u16
248 help: you can cast an `u16` to `u32`, which will zero-extend the source value
250 LL | id_u32(b16.into());
253 error[E0308]: mismatched types
254 --> $DIR/integer-literal-suffix-inference.rs:158:12
257 | ^^^ expected u32, found u64
259 error[E0308]: mismatched types
260 --> $DIR/integer-literal-suffix-inference.rs:162:12
263 | ^^ expected u64, found u8
264 help: you can cast an `u8` to `u64`, which will zero-extend the source value
266 LL | id_u64(b8.into());
269 error[E0308]: mismatched types
270 --> $DIR/integer-literal-suffix-inference.rs:165:12
273 | ^^^ expected u64, found u16
274 help: you can cast an `u16` to `u64`, which will zero-extend the source value
276 LL | id_u64(b16.into());
279 error[E0308]: mismatched types
280 --> $DIR/integer-literal-suffix-inference.rs:168:12
283 | ^^^ expected u64, found u32
284 help: you can cast an `u32` to `u64`, which will zero-extend the source value
286 LL | id_u64(b32.into());
289 error: aborting due to 36 previous errors
291 For more information about this error, try `rustc --explain E0308`.