]> git.proxmox.com Git - rustc.git/blame - src/test/ui/numeric/numeric-cast-no-fix.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / numeric / numeric-cast-no-fix.stderr
CommitLineData
f035d41b
XL
1error[E0308]: mismatched types
2 --> $DIR/numeric-cast-no-fix.rs:10:15
3 |
4LL | x_usize > -1_isize;
5 | ^^^^^^^^ expected `usize`, found `isize`
6 |
7 = note: `-1_isize` cannot fit into type `usize`
8
9error[E0308]: mismatched types
10 --> $DIR/numeric-cast-no-fix.rs:12:14
11 |
12LL | x_u128 > -1_isize;
13 | ^^^^^^^^ expected `u128`, found `isize`
14 |
15 = note: `-1_isize` cannot fit into type `u128`
16
17error[E0308]: mismatched types
18 --> $DIR/numeric-cast-no-fix.rs:14:13
19 |
20LL | x_u64 > -1_isize;
21 | ^^^^^^^^ expected `u64`, found `isize`
22 |
23 = note: `-1_isize` cannot fit into type `u64`
24
25error[E0308]: mismatched types
26 --> $DIR/numeric-cast-no-fix.rs:16:13
27 |
28LL | x_u32 > -1_isize;
29 | ^^^^^^^^ expected `u32`, found `isize`
30 |
31 = note: `-1_isize` cannot fit into type `u32`
32
33error[E0308]: mismatched types
34 --> $DIR/numeric-cast-no-fix.rs:18:13
35 |
36LL | x_u16 > -1_isize;
37 | ^^^^^^^^ expected `u16`, found `isize`
38 |
39 = note: `-1_isize` cannot fit into type `u16`
40
41error[E0308]: mismatched types
42 --> $DIR/numeric-cast-no-fix.rs:20:12
43 |
44LL | x_u8 > -1_isize;
45 | ^^^^^^^^ expected `u8`, found `isize`
46 |
47help: you can convert `x_u8` from `u8` to `isize`, matching the type of `-1_isize`
48 |
49LL | isize::from(x_u8) > -1_isize;
94222f64 50 | ~~~~~~~~~~~~~~~~~
f035d41b
XL
51
52error[E0308]: mismatched types
53 --> $DIR/numeric-cast-no-fix.rs:23:15
54 |
55LL | x_usize > -1_i128;
56 | ^^^^^^^ expected `usize`, found `i128`
57 |
58 = note: `-1_i128` cannot fit into type `usize`
59
60error[E0308]: mismatched types
61 --> $DIR/numeric-cast-no-fix.rs:25:14
62 |
63LL | x_u128 > -1_i128;
64 | ^^^^^^^ expected `u128`, found `i128`
65 |
66 = note: `-1_i128` cannot fit into type `u128`
67
68error[E0308]: mismatched types
69 --> $DIR/numeric-cast-no-fix.rs:27:13
70 |
71LL | x_u64 > -1_i128;
72 | ^^^^^^^ expected `u64`, found `i128`
73 |
74help: you can convert `x_u64` from `u64` to `i128`, matching the type of `-1_i128`
75 |
76LL | i128::from(x_u64) > -1_i128;
94222f64 77 | ~~~~~~~~~~~~~~~~~
f035d41b
XL
78
79error[E0308]: mismatched types
80 --> $DIR/numeric-cast-no-fix.rs:29:13
81 |
82LL | x_u32 > -1_i128;
83 | ^^^^^^^ expected `u32`, found `i128`
84 |
85help: you can convert `x_u32` from `u32` to `i128`, matching the type of `-1_i128`
86 |
87LL | i128::from(x_u32) > -1_i128;
94222f64 88 | ~~~~~~~~~~~~~~~~~
f035d41b
XL
89
90error[E0308]: mismatched types
91 --> $DIR/numeric-cast-no-fix.rs:31:13
92 |
93LL | x_u16 > -1_i128;
94 | ^^^^^^^ expected `u16`, found `i128`
95 |
96help: you can convert `x_u16` from `u16` to `i128`, matching the type of `-1_i128`
97 |
98LL | i128::from(x_u16) > -1_i128;
94222f64 99 | ~~~~~~~~~~~~~~~~~
f035d41b
XL
100
101error[E0308]: mismatched types
102 --> $DIR/numeric-cast-no-fix.rs:33:12
103 |
104LL | x_u8 > -1_i128;
105 | ^^^^^^^ expected `u8`, found `i128`
106 |
107help: you can convert `x_u8` from `u8` to `i128`, matching the type of `-1_i128`
108 |
109LL | i128::from(x_u8) > -1_i128;
94222f64 110 | ~~~~~~~~~~~~~~~~
f035d41b
XL
111
112error[E0308]: mismatched types
113 --> $DIR/numeric-cast-no-fix.rs:36:15
114 |
115LL | x_usize > -1_i64;
116 | ^^^^^^ expected `usize`, found `i64`
117 |
118 = note: `-1_i64` cannot fit into type `usize`
119
120error[E0308]: mismatched types
121 --> $DIR/numeric-cast-no-fix.rs:38:14
122 |
123LL | x_u128 > -1_i64;
124 | ^^^^^^ expected `u128`, found `i64`
125 |
126 = note: `-1_i64` cannot fit into type `u128`
127
128error[E0308]: mismatched types
129 --> $DIR/numeric-cast-no-fix.rs:40:13
130 |
131LL | x_u64 > -1_i64;
132 | ^^^^^^ expected `u64`, found `i64`
133 |
134 = note: `-1_i64` cannot fit into type `u64`
135
136error[E0308]: mismatched types
137 --> $DIR/numeric-cast-no-fix.rs:42:13
138 |
139LL | x_u32 > -1_i64;
140 | ^^^^^^ expected `u32`, found `i64`
141 |
142help: you can convert `x_u32` from `u32` to `i64`, matching the type of `-1_i64`
143 |
144LL | i64::from(x_u32) > -1_i64;
94222f64 145 | ~~~~~~~~~~~~~~~~
f035d41b
XL
146
147error[E0308]: mismatched types
148 --> $DIR/numeric-cast-no-fix.rs:44:13
149 |
150LL | x_u16 > -1_i64;
151 | ^^^^^^ expected `u16`, found `i64`
152 |
153help: you can convert `x_u16` from `u16` to `i64`, matching the type of `-1_i64`
154 |
155LL | i64::from(x_u16) > -1_i64;
94222f64 156 | ~~~~~~~~~~~~~~~~
f035d41b
XL
157
158error[E0308]: mismatched types
159 --> $DIR/numeric-cast-no-fix.rs:46:12
160 |
161LL | x_u8 > -1_i64;
162 | ^^^^^^ expected `u8`, found `i64`
163 |
164help: you can convert `x_u8` from `u8` to `i64`, matching the type of `-1_i64`
165 |
166LL | i64::from(x_u8) > -1_i64;
94222f64 167 | ~~~~~~~~~~~~~~~
f035d41b
XL
168
169error[E0308]: mismatched types
170 --> $DIR/numeric-cast-no-fix.rs:49:15
171 |
172LL | x_usize > -1_i32;
173 | ^^^^^^ expected `usize`, found `i32`
174 |
175 = note: `-1_i32` cannot fit into type `usize`
176
177error[E0308]: mismatched types
178 --> $DIR/numeric-cast-no-fix.rs:51:14
179 |
180LL | x_u128 > -1_i32;
181 | ^^^^^^ expected `u128`, found `i32`
182 |
183 = note: `-1_i32` cannot fit into type `u128`
184
185error[E0308]: mismatched types
186 --> $DIR/numeric-cast-no-fix.rs:53:13
187 |
188LL | x_u64 > -1_i32;
189 | ^^^^^^ expected `u64`, found `i32`
190 |
191 = note: `-1_i32` cannot fit into type `u64`
192
193error[E0308]: mismatched types
194 --> $DIR/numeric-cast-no-fix.rs:55:13
195 |
196LL | x_u32 > -1_i32;
197 | ^^^^^^ expected `u32`, found `i32`
198 |
199 = note: `-1_i32` cannot fit into type `u32`
200
201error[E0308]: mismatched types
202 --> $DIR/numeric-cast-no-fix.rs:57:13
203 |
204LL | x_u16 > -1_i32;
205 | ^^^^^^ expected `u16`, found `i32`
206 |
207help: you can convert `x_u16` from `u16` to `i32`, matching the type of `-1_i32`
208 |
209LL | i32::from(x_u16) > -1_i32;
94222f64 210 | ~~~~~~~~~~~~~~~~
f035d41b
XL
211
212error[E0308]: mismatched types
213 --> $DIR/numeric-cast-no-fix.rs:59:12
214 |
215LL | x_u8 > -1_i32;
216 | ^^^^^^ expected `u8`, found `i32`
217 |
218help: you can convert `x_u8` from `u8` to `i32`, matching the type of `-1_i32`
219 |
220LL | i32::from(x_u8) > -1_i32;
94222f64 221 | ~~~~~~~~~~~~~~~
f035d41b
XL
222
223error[E0308]: mismatched types
224 --> $DIR/numeric-cast-no-fix.rs:62:15
225 |
226LL | x_usize > -1_i16;
227 | ^^^^^^ expected `usize`, found `i16`
228 |
229 = note: `-1_i16` cannot fit into type `usize`
230
231error[E0308]: mismatched types
232 --> $DIR/numeric-cast-no-fix.rs:64:14
233 |
234LL | x_u128 > -1_i16;
235 | ^^^^^^ expected `u128`, found `i16`
236 |
237 = note: `-1_i16` cannot fit into type `u128`
238
239error[E0308]: mismatched types
240 --> $DIR/numeric-cast-no-fix.rs:66:13
241 |
242LL | x_u64 > -1_i16;
243 | ^^^^^^ expected `u64`, found `i16`
244 |
245 = note: `-1_i16` cannot fit into type `u64`
246
247error[E0308]: mismatched types
248 --> $DIR/numeric-cast-no-fix.rs:68:13
249 |
250LL | x_u32 > -1_i16;
251 | ^^^^^^ expected `u32`, found `i16`
252 |
253 = note: `-1_i16` cannot fit into type `u32`
254
255error[E0308]: mismatched types
256 --> $DIR/numeric-cast-no-fix.rs:70:13
257 |
258LL | x_u16 > -1_i16;
259 | ^^^^^^ expected `u16`, found `i16`
260 |
261 = note: `-1_i16` cannot fit into type `u16`
262
263error[E0308]: mismatched types
264 --> $DIR/numeric-cast-no-fix.rs:72:12
265 |
266LL | x_u8 > -1_i16;
267 | ^^^^^^ expected `u8`, found `i16`
268 |
269help: you can convert `x_u8` from `u8` to `i16`, matching the type of `-1_i16`
270 |
271LL | i16::from(x_u8) > -1_i16;
94222f64 272 | ~~~~~~~~~~~~~~~
f035d41b
XL
273
274error[E0308]: mismatched types
275 --> $DIR/numeric-cast-no-fix.rs:75:15
276 |
277LL | x_usize > -1_i8;
278 | ^^^^^ expected `usize`, found `i8`
279 |
280 = note: `-1_i8` cannot fit into type `usize`
281
282error[E0308]: mismatched types
283 --> $DIR/numeric-cast-no-fix.rs:77:14
284 |
285LL | x_u128 > -1_i8;
286 | ^^^^^ expected `u128`, found `i8`
287 |
288 = note: `-1_i8` cannot fit into type `u128`
289
290error[E0308]: mismatched types
291 --> $DIR/numeric-cast-no-fix.rs:79:13
292 |
293LL | x_u64 > -1_i8;
294 | ^^^^^ expected `u64`, found `i8`
295 |
296 = note: `-1_i8` cannot fit into type `u64`
297
298error[E0308]: mismatched types
299 --> $DIR/numeric-cast-no-fix.rs:81:13
300 |
301LL | x_u32 > -1_i8;
302 | ^^^^^ expected `u32`, found `i8`
303 |
304 = note: `-1_i8` cannot fit into type `u32`
305
306error[E0308]: mismatched types
307 --> $DIR/numeric-cast-no-fix.rs:83:13
308 |
309LL | x_u16 > -1_i8;
310 | ^^^^^ expected `u16`, found `i8`
311 |
312 = note: `-1_i8` cannot fit into type `u16`
313
314error[E0308]: mismatched types
315 --> $DIR/numeric-cast-no-fix.rs:85:12
316 |
317LL | x_u8 > -1_i8;
318 | ^^^^^ expected `u8`, found `i8`
319 |
320 = note: `-1_i8` cannot fit into type `u8`
321
322error: aborting due to 36 previous errors
323
324For more information about this error, try `rustc --explain E0308`.