fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
7.6 KiB297 linesraw
1error[E0308]: mismatched types
2  --> $DIR/numeric-cast-without-suggestion.rs:17:18
3   |
4LL |     foo::<usize>(x_f64);
5   |     ------------ ^^^^^ expected `usize`, found `f64`
6   |     |
7   |     arguments to this function are incorrect
8   |
9note: function defined here
10  --> $DIR/numeric-cast-without-suggestion.rs:1:4
11   |
12LL | fn foo<N>(_x: N) {}
13   |    ^^^    -----
14
15error[E0308]: mismatched types
16  --> $DIR/numeric-cast-without-suggestion.rs:18:18
17   |
18LL |     foo::<usize>(x_f32);
19   |     ------------ ^^^^^ expected `usize`, found `f32`
20   |     |
21   |     arguments to this function are incorrect
22   |
23note: function defined here
24  --> $DIR/numeric-cast-without-suggestion.rs:1:4
25   |
26LL | fn foo<N>(_x: N) {}
27   |    ^^^    -----
28
29error[E0308]: mismatched types
30  --> $DIR/numeric-cast-without-suggestion.rs:19:18
31   |
32LL |     foo::<isize>(x_f64);
33   |     ------------ ^^^^^ expected `isize`, found `f64`
34   |     |
35   |     arguments to this function are incorrect
36   |
37note: function defined here
38  --> $DIR/numeric-cast-without-suggestion.rs:1:4
39   |
40LL | fn foo<N>(_x: N) {}
41   |    ^^^    -----
42
43error[E0308]: mismatched types
44  --> $DIR/numeric-cast-without-suggestion.rs:20:18
45   |
46LL |     foo::<isize>(x_f32);
47   |     ------------ ^^^^^ expected `isize`, found `f32`
48   |     |
49   |     arguments to this function are incorrect
50   |
51note: function defined here
52  --> $DIR/numeric-cast-without-suggestion.rs:1:4
53   |
54LL | fn foo<N>(_x: N) {}
55   |    ^^^    -----
56
57error[E0308]: mismatched types
58  --> $DIR/numeric-cast-without-suggestion.rs:21:16
59   |
60LL |     foo::<u64>(x_f64);
61   |     ---------- ^^^^^ expected `u64`, found `f64`
62   |     |
63   |     arguments to this function are incorrect
64   |
65note: function defined here
66  --> $DIR/numeric-cast-without-suggestion.rs:1:4
67   |
68LL | fn foo<N>(_x: N) {}
69   |    ^^^    -----
70
71error[E0308]: mismatched types
72  --> $DIR/numeric-cast-without-suggestion.rs:22:16
73   |
74LL |     foo::<u64>(x_f32);
75   |     ---------- ^^^^^ expected `u64`, found `f32`
76   |     |
77   |     arguments to this function are incorrect
78   |
79note: function defined here
80  --> $DIR/numeric-cast-without-suggestion.rs:1:4
81   |
82LL | fn foo<N>(_x: N) {}
83   |    ^^^    -----
84
85error[E0308]: mismatched types
86  --> $DIR/numeric-cast-without-suggestion.rs:23:16
87   |
88LL |     foo::<i64>(x_f64);
89   |     ---------- ^^^^^ expected `i64`, found `f64`
90   |     |
91   |     arguments to this function are incorrect
92   |
93note: function defined here
94  --> $DIR/numeric-cast-without-suggestion.rs:1:4
95   |
96LL | fn foo<N>(_x: N) {}
97   |    ^^^    -----
98
99error[E0308]: mismatched types
100  --> $DIR/numeric-cast-without-suggestion.rs:24:16
101   |
102LL |     foo::<i64>(x_f32);
103   |     ---------- ^^^^^ expected `i64`, found `f32`
104   |     |
105   |     arguments to this function are incorrect
106   |
107note: function defined here
108  --> $DIR/numeric-cast-without-suggestion.rs:1:4
109   |
110LL | fn foo<N>(_x: N) {}
111   |    ^^^    -----
112
113error[E0308]: mismatched types
114  --> $DIR/numeric-cast-without-suggestion.rs:25:16
115   |
116LL |     foo::<u32>(x_f64);
117   |     ---------- ^^^^^ expected `u32`, found `f64`
118   |     |
119   |     arguments to this function are incorrect
120   |
121note: function defined here
122  --> $DIR/numeric-cast-without-suggestion.rs:1:4
123   |
124LL | fn foo<N>(_x: N) {}
125   |    ^^^    -----
126
127error[E0308]: mismatched types
128  --> $DIR/numeric-cast-without-suggestion.rs:26:16
129   |
130LL |     foo::<u32>(x_f32);
131   |     ---------- ^^^^^ expected `u32`, found `f32`
132   |     |
133   |     arguments to this function are incorrect
134   |
135note: function defined here
136  --> $DIR/numeric-cast-without-suggestion.rs:1:4
137   |
138LL | fn foo<N>(_x: N) {}
139   |    ^^^    -----
140
141error[E0308]: mismatched types
142  --> $DIR/numeric-cast-without-suggestion.rs:27:16
143   |
144LL |     foo::<i32>(x_f64);
145   |     ---------- ^^^^^ expected `i32`, found `f64`
146   |     |
147   |     arguments to this function are incorrect
148   |
149note: function defined here
150  --> $DIR/numeric-cast-without-suggestion.rs:1:4
151   |
152LL | fn foo<N>(_x: N) {}
153   |    ^^^    -----
154
155error[E0308]: mismatched types
156  --> $DIR/numeric-cast-without-suggestion.rs:28:16
157   |
158LL |     foo::<i32>(x_f32);
159   |     ---------- ^^^^^ expected `i32`, found `f32`
160   |     |
161   |     arguments to this function are incorrect
162   |
163note: function defined here
164  --> $DIR/numeric-cast-without-suggestion.rs:1:4
165   |
166LL | fn foo<N>(_x: N) {}
167   |    ^^^    -----
168
169error[E0308]: mismatched types
170  --> $DIR/numeric-cast-without-suggestion.rs:29:16
171   |
172LL |     foo::<u16>(x_f64);
173   |     ---------- ^^^^^ expected `u16`, found `f64`
174   |     |
175   |     arguments to this function are incorrect
176   |
177note: function defined here
178  --> $DIR/numeric-cast-without-suggestion.rs:1:4
179   |
180LL | fn foo<N>(_x: N) {}
181   |    ^^^    -----
182
183error[E0308]: mismatched types
184  --> $DIR/numeric-cast-without-suggestion.rs:30:16
185   |
186LL |     foo::<u16>(x_f32);
187   |     ---------- ^^^^^ expected `u16`, found `f32`
188   |     |
189   |     arguments to this function are incorrect
190   |
191note: function defined here
192  --> $DIR/numeric-cast-without-suggestion.rs:1:4
193   |
194LL | fn foo<N>(_x: N) {}
195   |    ^^^    -----
196
197error[E0308]: mismatched types
198  --> $DIR/numeric-cast-without-suggestion.rs:31:16
199   |
200LL |     foo::<i16>(x_f64);
201   |     ---------- ^^^^^ expected `i16`, found `f64`
202   |     |
203   |     arguments to this function are incorrect
204   |
205note: function defined here
206  --> $DIR/numeric-cast-without-suggestion.rs:1:4
207   |
208LL | fn foo<N>(_x: N) {}
209   |    ^^^    -----
210
211error[E0308]: mismatched types
212  --> $DIR/numeric-cast-without-suggestion.rs:32:16
213   |
214LL |     foo::<i16>(x_f32);
215   |     ---------- ^^^^^ expected `i16`, found `f32`
216   |     |
217   |     arguments to this function are incorrect
218   |
219note: function defined here
220  --> $DIR/numeric-cast-without-suggestion.rs:1:4
221   |
222LL | fn foo<N>(_x: N) {}
223   |    ^^^    -----
224
225error[E0308]: mismatched types
226  --> $DIR/numeric-cast-without-suggestion.rs:33:15
227   |
228LL |     foo::<u8>(x_f64);
229   |     --------- ^^^^^ expected `u8`, found `f64`
230   |     |
231   |     arguments to this function are incorrect
232   |
233note: function defined here
234  --> $DIR/numeric-cast-without-suggestion.rs:1:4
235   |
236LL | fn foo<N>(_x: N) {}
237   |    ^^^    -----
238
239error[E0308]: mismatched types
240  --> $DIR/numeric-cast-without-suggestion.rs:34:15
241   |
242LL |     foo::<u8>(x_f32);
243   |     --------- ^^^^^ expected `u8`, found `f32`
244   |     |
245   |     arguments to this function are incorrect
246   |
247note: function defined here
248  --> $DIR/numeric-cast-without-suggestion.rs:1:4
249   |
250LL | fn foo<N>(_x: N) {}
251   |    ^^^    -----
252
253error[E0308]: mismatched types
254  --> $DIR/numeric-cast-without-suggestion.rs:35:15
255   |
256LL |     foo::<i8>(x_f64);
257   |     --------- ^^^^^ expected `i8`, found `f64`
258   |     |
259   |     arguments to this function are incorrect
260   |
261note: function defined here
262  --> $DIR/numeric-cast-without-suggestion.rs:1:4
263   |
264LL | fn foo<N>(_x: N) {}
265   |    ^^^    -----
266
267error[E0308]: mismatched types
268  --> $DIR/numeric-cast-without-suggestion.rs:36:15
269   |
270LL |     foo::<i8>(x_f32);
271   |     --------- ^^^^^ expected `i8`, found `f32`
272   |     |
273   |     arguments to this function are incorrect
274   |
275note: function defined here
276  --> $DIR/numeric-cast-without-suggestion.rs:1:4
277   |
278LL | fn foo<N>(_x: N) {}
279   |    ^^^    -----
280
281error[E0308]: mismatched types
282  --> $DIR/numeric-cast-without-suggestion.rs:37:16
283   |
284LL |     foo::<f32>(x_f64);
285   |     ---------- ^^^^^ expected `f32`, found `f64`
286   |     |
287   |     arguments to this function are incorrect
288   |
289note: function defined here
290  --> $DIR/numeric-cast-without-suggestion.rs:1:4
291   |
292LL | fn foo<N>(_x: N) {}
293   |    ^^^    -----
294
295error: aborting due to 21 previous errors
296
297For more information about this error, try `rustc --explain E0308`.