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