]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/type-mismatch.rs:17:17 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | want::<foo>(f); |
923072b8 FG |
5 | | ----------- ^ expected struct `foo`, found `usize` |
6 | | | | |
7 | | arguments to this function are incorrect | |
8 | | | |
9 | note: function defined here | |
10 | --> $DIR/type-mismatch.rs:14:4 | |
11 | | | |
12 | LL | fn want<T>(t: T) {} | |
13 | | ^^^^ ---- | |
8faf50e0 XL |
14 | |
15 | error[E0308]: mismatched types | |
0731742a | 16 | --> $DIR/type-mismatch.rs:18:17 |
8faf50e0 | 17 | | |
532ac7d7 | 18 | LL | want::<bar>(f); |
923072b8 FG |
19 | | ----------- ^ expected struct `bar`, found `usize` |
20 | | | | |
21 | | arguments to this function are incorrect | |
22 | | | |
23 | note: function defined here | |
24 | --> $DIR/type-mismatch.rs:14:4 | |
25 | | | |
26 | LL | fn want<T>(t: T) {} | |
27 | | ^^^^ ---- | |
8faf50e0 XL |
28 | |
29 | error[E0308]: mismatched types | |
0731742a | 30 | --> $DIR/type-mismatch.rs:19:24 |
8faf50e0 | 31 | | |
532ac7d7 | 32 | LL | want::<Foo<usize>>(f); |
923072b8 FG |
33 | | ------------------ ^ expected struct `Foo`, found `usize` |
34 | | | | |
35 | | arguments to this function are incorrect | |
8faf50e0 | 36 | | |
60c5eb7d XL |
37 | = note: expected struct `Foo<usize>` |
38 | found type `usize` | |
923072b8 FG |
39 | note: function defined here |
40 | --> $DIR/type-mismatch.rs:14:4 | |
41 | | | |
42 | LL | fn want<T>(t: T) {} | |
43 | | ^^^^ ---- | |
8faf50e0 XL |
44 | |
45 | error[E0308]: mismatched types | |
0731742a | 46 | --> $DIR/type-mismatch.rs:20:27 |
8faf50e0 | 47 | | |
532ac7d7 | 48 | LL | want::<Foo<usize, B>>(f); |
923072b8 FG |
49 | | --------------------- ^ expected struct `Foo`, found `usize` |
50 | | | | |
51 | | arguments to this function are incorrect | |
8faf50e0 | 52 | | |
60c5eb7d XL |
53 | = note: expected struct `Foo<usize, B>` |
54 | found type `usize` | |
923072b8 FG |
55 | note: function defined here |
56 | --> $DIR/type-mismatch.rs:14:4 | |
57 | | | |
58 | LL | fn want<T>(t: T) {} | |
59 | | ^^^^ ---- | |
8faf50e0 XL |
60 | |
61 | error[E0308]: mismatched types | |
0731742a | 62 | --> $DIR/type-mismatch.rs:21:22 |
8faf50e0 | 63 | | |
532ac7d7 | 64 | LL | want::<Foo<foo>>(f); |
923072b8 FG |
65 | | ---------------- ^ expected struct `Foo`, found `usize` |
66 | | | | |
67 | | arguments to this function are incorrect | |
8faf50e0 | 68 | | |
60c5eb7d XL |
69 | = note: expected struct `Foo<foo>` |
70 | found type `usize` | |
923072b8 FG |
71 | note: function defined here |
72 | --> $DIR/type-mismatch.rs:14:4 | |
73 | | | |
74 | LL | fn want<T>(t: T) {} | |
75 | | ^^^^ ---- | |
8faf50e0 XL |
76 | |
77 | error[E0308]: mismatched types | |
0731742a | 78 | --> $DIR/type-mismatch.rs:22:25 |
8faf50e0 | 79 | | |
532ac7d7 | 80 | LL | want::<Foo<foo, B>>(f); |
923072b8 FG |
81 | | ------------------- ^ expected struct `Foo`, found `usize` |
82 | | | | |
83 | | arguments to this function are incorrect | |
8faf50e0 | 84 | | |
60c5eb7d XL |
85 | = note: expected struct `Foo<foo, B>` |
86 | found type `usize` | |
923072b8 FG |
87 | note: function defined here |
88 | --> $DIR/type-mismatch.rs:14:4 | |
89 | | | |
90 | LL | fn want<T>(t: T) {} | |
91 | | ^^^^ ---- | |
8faf50e0 XL |
92 | |
93 | error[E0308]: mismatched types | |
0731742a | 94 | --> $DIR/type-mismatch.rs:23:22 |
8faf50e0 | 95 | | |
532ac7d7 | 96 | LL | want::<Foo<bar>>(f); |
923072b8 FG |
97 | | ---------------- ^ expected struct `Foo`, found `usize` |
98 | | | | |
99 | | arguments to this function are incorrect | |
8faf50e0 | 100 | | |
60c5eb7d XL |
101 | = note: expected struct `Foo<bar>` |
102 | found type `usize` | |
923072b8 FG |
103 | note: function defined here |
104 | --> $DIR/type-mismatch.rs:14:4 | |
105 | | | |
106 | LL | fn want<T>(t: T) {} | |
107 | | ^^^^ ---- | |
8faf50e0 XL |
108 | |
109 | error[E0308]: mismatched types | |
0731742a | 110 | --> $DIR/type-mismatch.rs:24:25 |
8faf50e0 | 111 | | |
532ac7d7 | 112 | LL | want::<Foo<bar, B>>(f); |
923072b8 FG |
113 | | ------------------- ^ expected struct `Foo`, found `usize` |
114 | | | | |
115 | | arguments to this function are incorrect | |
8faf50e0 | 116 | | |
60c5eb7d XL |
117 | = note: expected struct `Foo<bar, B>` |
118 | found type `usize` | |
923072b8 FG |
119 | note: function defined here |
120 | --> $DIR/type-mismatch.rs:14:4 | |
121 | | | |
122 | LL | fn want<T>(t: T) {} | |
123 | | ^^^^ ---- | |
8faf50e0 XL |
124 | |
125 | error[E0308]: mismatched types | |
0731742a | 126 | --> $DIR/type-mismatch.rs:28:19 |
8faf50e0 | 127 | | |
532ac7d7 | 128 | LL | want::<usize>(f); |
923072b8 FG |
129 | | ------------- ^ expected `usize`, found struct `foo` |
130 | | | | |
131 | | arguments to this function are incorrect | |
132 | | | |
133 | note: function defined here | |
134 | --> $DIR/type-mismatch.rs:14:4 | |
135 | | | |
136 | LL | fn want<T>(t: T) {} | |
137 | | ^^^^ ---- | |
8faf50e0 XL |
138 | |
139 | error[E0308]: mismatched types | |
0731742a | 140 | --> $DIR/type-mismatch.rs:29:17 |
8faf50e0 | 141 | | |
532ac7d7 | 142 | LL | want::<bar>(f); |
923072b8 FG |
143 | | ----------- ^ expected struct `bar`, found struct `foo` |
144 | | | | |
145 | | arguments to this function are incorrect | |
146 | | | |
147 | note: function defined here | |
148 | --> $DIR/type-mismatch.rs:14:4 | |
149 | | | |
150 | LL | fn want<T>(t: T) {} | |
151 | | ^^^^ ---- | |
8faf50e0 XL |
152 | |
153 | error[E0308]: mismatched types | |
0731742a | 154 | --> $DIR/type-mismatch.rs:30:24 |
8faf50e0 | 155 | | |
532ac7d7 | 156 | LL | want::<Foo<usize>>(f); |
923072b8 FG |
157 | | ------------------ ^ expected struct `Foo`, found struct `foo` |
158 | | | | |
159 | | arguments to this function are incorrect | |
8faf50e0 | 160 | | |
60c5eb7d XL |
161 | = note: expected struct `Foo<usize>` |
162 | found struct `foo` | |
923072b8 FG |
163 | note: function defined here |
164 | --> $DIR/type-mismatch.rs:14:4 | |
165 | | | |
166 | LL | fn want<T>(t: T) {} | |
167 | | ^^^^ ---- | |
8faf50e0 XL |
168 | |
169 | error[E0308]: mismatched types | |
0731742a | 170 | --> $DIR/type-mismatch.rs:31:27 |
8faf50e0 | 171 | | |
532ac7d7 | 172 | LL | want::<Foo<usize, B>>(f); |
923072b8 FG |
173 | | --------------------- ^ expected struct `Foo`, found struct `foo` |
174 | | | | |
175 | | arguments to this function are incorrect | |
8faf50e0 | 176 | | |
60c5eb7d XL |
177 | = note: expected struct `Foo<usize, B>` |
178 | found struct `foo` | |
923072b8 FG |
179 | note: function defined here |
180 | --> $DIR/type-mismatch.rs:14:4 | |
181 | | | |
182 | LL | fn want<T>(t: T) {} | |
183 | | ^^^^ ---- | |
8faf50e0 XL |
184 | |
185 | error[E0308]: mismatched types | |
0731742a | 186 | --> $DIR/type-mismatch.rs:32:22 |
8faf50e0 | 187 | | |
532ac7d7 | 188 | LL | want::<Foo<foo>>(f); |
923072b8 FG |
189 | | ---------------- ^ expected struct `Foo`, found struct `foo` |
190 | | | | |
191 | | arguments to this function are incorrect | |
8faf50e0 | 192 | | |
60c5eb7d XL |
193 | = note: expected struct `Foo<foo>` |
194 | found struct `foo` | |
923072b8 FG |
195 | note: function defined here |
196 | --> $DIR/type-mismatch.rs:14:4 | |
197 | | | |
198 | LL | fn want<T>(t: T) {} | |
199 | | ^^^^ ---- | |
8faf50e0 XL |
200 | |
201 | error[E0308]: mismatched types | |
0731742a | 202 | --> $DIR/type-mismatch.rs:33:25 |
8faf50e0 | 203 | | |
532ac7d7 | 204 | LL | want::<Foo<foo, B>>(f); |
923072b8 FG |
205 | | ------------------- ^ expected struct `Foo`, found struct `foo` |
206 | | | | |
207 | | arguments to this function are incorrect | |
8faf50e0 | 208 | | |
60c5eb7d XL |
209 | = note: expected struct `Foo<foo, B>` |
210 | found struct `foo` | |
923072b8 FG |
211 | note: function defined here |
212 | --> $DIR/type-mismatch.rs:14:4 | |
213 | | | |
214 | LL | fn want<T>(t: T) {} | |
215 | | ^^^^ ---- | |
8faf50e0 XL |
216 | |
217 | error[E0308]: mismatched types | |
0731742a | 218 | --> $DIR/type-mismatch.rs:34:22 |
8faf50e0 | 219 | | |
532ac7d7 | 220 | LL | want::<Foo<bar>>(f); |
923072b8 FG |
221 | | ---------------- ^ expected struct `Foo`, found struct `foo` |
222 | | | | |
223 | | arguments to this function are incorrect | |
8faf50e0 | 224 | | |
60c5eb7d XL |
225 | = note: expected struct `Foo<bar>` |
226 | found struct `foo` | |
923072b8 FG |
227 | note: function defined here |
228 | --> $DIR/type-mismatch.rs:14:4 | |
229 | | | |
230 | LL | fn want<T>(t: T) {} | |
231 | | ^^^^ ---- | |
8faf50e0 XL |
232 | |
233 | error[E0308]: mismatched types | |
0731742a | 234 | --> $DIR/type-mismatch.rs:35:25 |
8faf50e0 | 235 | | |
532ac7d7 | 236 | LL | want::<Foo<bar, B>>(f); |
923072b8 FG |
237 | | ------------------- ^ expected struct `Foo`, found struct `foo` |
238 | | | | |
239 | | arguments to this function are incorrect | |
8faf50e0 | 240 | | |
60c5eb7d XL |
241 | = note: expected struct `Foo<bar, B>` |
242 | found struct `foo` | |
923072b8 FG |
243 | note: function defined here |
244 | --> $DIR/type-mismatch.rs:14:4 | |
245 | | | |
246 | LL | fn want<T>(t: T) {} | |
247 | | ^^^^ ---- | |
8faf50e0 XL |
248 | |
249 | error[E0308]: mismatched types | |
0731742a | 250 | --> $DIR/type-mismatch.rs:39:19 |
8faf50e0 | 251 | | |
532ac7d7 | 252 | LL | want::<usize>(f); |
923072b8 FG |
253 | | ------------- ^ expected `usize`, found struct `Foo` |
254 | | | | |
255 | | arguments to this function are incorrect | |
8faf50e0 XL |
256 | | |
257 | = note: expected type `usize` | |
60c5eb7d | 258 | found struct `Foo<foo>` |
923072b8 FG |
259 | note: function defined here |
260 | --> $DIR/type-mismatch.rs:14:4 | |
261 | | | |
262 | LL | fn want<T>(t: T) {} | |
263 | | ^^^^ ---- | |
8faf50e0 XL |
264 | |
265 | error[E0308]: mismatched types | |
0731742a | 266 | --> $DIR/type-mismatch.rs:40:17 |
8faf50e0 | 267 | | |
532ac7d7 | 268 | LL | want::<foo>(f); |
923072b8 FG |
269 | | ----------- ^ expected struct `foo`, found struct `Foo` |
270 | | | | |
271 | | arguments to this function are incorrect | |
8faf50e0 | 272 | | |
60c5eb7d XL |
273 | = note: expected struct `foo` |
274 | found struct `Foo<foo>` | |
923072b8 FG |
275 | note: function defined here |
276 | --> $DIR/type-mismatch.rs:14:4 | |
277 | | | |
278 | LL | fn want<T>(t: T) {} | |
279 | | ^^^^ ---- | |
8faf50e0 XL |
280 | |
281 | error[E0308]: mismatched types | |
0731742a | 282 | --> $DIR/type-mismatch.rs:41:17 |
8faf50e0 | 283 | | |
532ac7d7 | 284 | LL | want::<bar>(f); |
923072b8 FG |
285 | | ----------- ^ expected struct `bar`, found struct `Foo` |
286 | | | | |
287 | | arguments to this function are incorrect | |
8faf50e0 | 288 | | |
60c5eb7d XL |
289 | = note: expected struct `bar` |
290 | found struct `Foo<foo>` | |
923072b8 FG |
291 | note: function defined here |
292 | --> $DIR/type-mismatch.rs:14:4 | |
293 | | | |
294 | LL | fn want<T>(t: T) {} | |
295 | | ^^^^ ---- | |
8faf50e0 XL |
296 | |
297 | error[E0308]: mismatched types | |
0731742a | 298 | --> $DIR/type-mismatch.rs:42:24 |
8faf50e0 | 299 | | |
532ac7d7 | 300 | LL | want::<Foo<usize>>(f); |
923072b8 FG |
301 | | ------------------ ^ expected `usize`, found struct `foo` |
302 | | | | |
303 | | arguments to this function are incorrect | |
8faf50e0 | 304 | | |
60c5eb7d XL |
305 | = note: expected struct `Foo<usize>` |
306 | found struct `Foo<foo>` | |
923072b8 FG |
307 | note: function defined here |
308 | --> $DIR/type-mismatch.rs:14:4 | |
309 | | | |
310 | LL | fn want<T>(t: T) {} | |
311 | | ^^^^ ---- | |
8faf50e0 XL |
312 | |
313 | error[E0308]: mismatched types | |
0731742a | 314 | --> $DIR/type-mismatch.rs:43:27 |
8faf50e0 | 315 | | |
532ac7d7 | 316 | LL | want::<Foo<usize, B>>(f); |
923072b8 FG |
317 | | --------------------- ^ expected `usize`, found struct `foo` |
318 | | | | |
319 | | arguments to this function are incorrect | |
8faf50e0 | 320 | | |
60c5eb7d XL |
321 | = note: expected struct `Foo<usize, B>` |
322 | found struct `Foo<foo, A>` | |
923072b8 FG |
323 | note: function defined here |
324 | --> $DIR/type-mismatch.rs:14:4 | |
325 | | | |
326 | LL | fn want<T>(t: T) {} | |
327 | | ^^^^ ---- | |
8faf50e0 XL |
328 | |
329 | error[E0308]: mismatched types | |
0731742a | 330 | --> $DIR/type-mismatch.rs:44:25 |
8faf50e0 | 331 | | |
532ac7d7 | 332 | LL | want::<Foo<foo, B>>(f); |
923072b8 FG |
333 | | ------------------- ^ expected struct `B`, found struct `A` |
334 | | | | |
335 | | arguments to this function are incorrect | |
8faf50e0 | 336 | | |
60c5eb7d XL |
337 | = note: expected struct `Foo<_, B>` |
338 | found struct `Foo<_, A>` | |
923072b8 FG |
339 | note: function defined here |
340 | --> $DIR/type-mismatch.rs:14:4 | |
341 | | | |
342 | LL | fn want<T>(t: T) {} | |
343 | | ^^^^ ---- | |
8faf50e0 XL |
344 | |
345 | error[E0308]: mismatched types | |
0731742a | 346 | --> $DIR/type-mismatch.rs:45:22 |
8faf50e0 | 347 | | |
532ac7d7 | 348 | LL | want::<Foo<bar>>(f); |
923072b8 FG |
349 | | ---------------- ^ expected struct `bar`, found struct `foo` |
350 | | | | |
351 | | arguments to this function are incorrect | |
8faf50e0 | 352 | | |
60c5eb7d XL |
353 | = note: expected struct `Foo<bar>` |
354 | found struct `Foo<foo>` | |
923072b8 FG |
355 | note: function defined here |
356 | --> $DIR/type-mismatch.rs:14:4 | |
357 | | | |
358 | LL | fn want<T>(t: T) {} | |
359 | | ^^^^ ---- | |
8faf50e0 XL |
360 | |
361 | error[E0308]: mismatched types | |
0731742a | 362 | --> $DIR/type-mismatch.rs:46:25 |
8faf50e0 | 363 | | |
532ac7d7 | 364 | LL | want::<Foo<bar, B>>(f); |
923072b8 FG |
365 | | ------------------- ^ expected struct `bar`, found struct `foo` |
366 | | | | |
367 | | arguments to this function are incorrect | |
8faf50e0 | 368 | | |
60c5eb7d XL |
369 | = note: expected struct `Foo<bar, B>` |
370 | found struct `Foo<foo, A>` | |
923072b8 FG |
371 | note: function defined here |
372 | --> $DIR/type-mismatch.rs:14:4 | |
373 | | | |
374 | LL | fn want<T>(t: T) {} | |
375 | | ^^^^ ---- | |
8faf50e0 XL |
376 | |
377 | error[E0308]: mismatched types | |
0731742a | 378 | --> $DIR/type-mismatch.rs:47:23 |
8faf50e0 | 379 | | |
532ac7d7 | 380 | LL | want::<&Foo<foo>>(f); |
923072b8 FG |
381 | | ----------------- ^ |
382 | | | | | |
383 | | | expected `&Foo<foo>`, found struct `Foo` | |
384 | | | help: consider borrowing here: `&f` | |
385 | | arguments to this function are incorrect | |
8faf50e0 | 386 | | |
60c5eb7d XL |
387 | = note: expected reference `&Foo<foo>` |
388 | found struct `Foo<foo>` | |
923072b8 FG |
389 | note: function defined here |
390 | --> $DIR/type-mismatch.rs:14:4 | |
391 | | | |
392 | LL | fn want<T>(t: T) {} | |
393 | | ^^^^ ---- | |
8faf50e0 XL |
394 | |
395 | error[E0308]: mismatched types | |
0731742a | 396 | --> $DIR/type-mismatch.rs:48:26 |
8faf50e0 | 397 | | |
532ac7d7 | 398 | LL | want::<&Foo<foo, B>>(f); |
923072b8 FG |
399 | | -------------------- ^ expected `&Foo<foo, B>`, found struct `Foo` |
400 | | | | |
401 | | arguments to this function are incorrect | |
8faf50e0 | 402 | | |
60c5eb7d XL |
403 | = note: expected reference `&Foo<foo, B>` |
404 | found struct `Foo<foo>` | |
923072b8 FG |
405 | note: function defined here |
406 | --> $DIR/type-mismatch.rs:14:4 | |
407 | | | |
408 | LL | fn want<T>(t: T) {} | |
409 | | ^^^^ ---- | |
8faf50e0 XL |
410 | |
411 | error[E0308]: mismatched types | |
0731742a | 412 | --> $DIR/type-mismatch.rs:52:19 |
8faf50e0 | 413 | | |
532ac7d7 | 414 | LL | want::<usize>(f); |
923072b8 FG |
415 | | ------------- ^ expected `usize`, found struct `Foo` |
416 | | | | |
417 | | arguments to this function are incorrect | |
8faf50e0 XL |
418 | | |
419 | = note: expected type `usize` | |
60c5eb7d | 420 | found struct `Foo<foo, B>` |
923072b8 FG |
421 | note: function defined here |
422 | --> $DIR/type-mismatch.rs:14:4 | |
423 | | | |
424 | LL | fn want<T>(t: T) {} | |
425 | | ^^^^ ---- | |
8faf50e0 XL |
426 | |
427 | error[E0308]: mismatched types | |
0731742a | 428 | --> $DIR/type-mismatch.rs:53:17 |
8faf50e0 | 429 | | |
532ac7d7 | 430 | LL | want::<foo>(f); |
923072b8 FG |
431 | | ----------- ^ expected struct `foo`, found struct `Foo` |
432 | | | | |
433 | | arguments to this function are incorrect | |
8faf50e0 | 434 | | |
60c5eb7d XL |
435 | = note: expected struct `foo` |
436 | found struct `Foo<foo, B>` | |
923072b8 FG |
437 | note: function defined here |
438 | --> $DIR/type-mismatch.rs:14:4 | |
439 | | | |
440 | LL | fn want<T>(t: T) {} | |
441 | | ^^^^ ---- | |
8faf50e0 XL |
442 | |
443 | error[E0308]: mismatched types | |
0731742a | 444 | --> $DIR/type-mismatch.rs:54:17 |
8faf50e0 | 445 | | |
532ac7d7 | 446 | LL | want::<bar>(f); |
923072b8 FG |
447 | | ----------- ^ expected struct `bar`, found struct `Foo` |
448 | | | | |
449 | | arguments to this function are incorrect | |
8faf50e0 | 450 | | |
60c5eb7d XL |
451 | = note: expected struct `bar` |
452 | found struct `Foo<foo, B>` | |
923072b8 FG |
453 | note: function defined here |
454 | --> $DIR/type-mismatch.rs:14:4 | |
455 | | | |
456 | LL | fn want<T>(t: T) {} | |
457 | | ^^^^ ---- | |
8faf50e0 XL |
458 | |
459 | error[E0308]: mismatched types | |
0731742a | 460 | --> $DIR/type-mismatch.rs:55:24 |
8faf50e0 | 461 | | |
532ac7d7 | 462 | LL | want::<Foo<usize>>(f); |
923072b8 FG |
463 | | ------------------ ^ expected `usize`, found struct `foo` |
464 | | | | |
465 | | arguments to this function are incorrect | |
8faf50e0 | 466 | | |
60c5eb7d XL |
467 | = note: expected struct `Foo<usize, A>` |
468 | found struct `Foo<foo, B>` | |
923072b8 FG |
469 | note: function defined here |
470 | --> $DIR/type-mismatch.rs:14:4 | |
471 | | | |
472 | LL | fn want<T>(t: T) {} | |
473 | | ^^^^ ---- | |
8faf50e0 XL |
474 | |
475 | error[E0308]: mismatched types | |
0731742a | 476 | --> $DIR/type-mismatch.rs:56:27 |
8faf50e0 | 477 | | |
532ac7d7 | 478 | LL | want::<Foo<usize, B>>(f); |
923072b8 FG |
479 | | --------------------- ^ expected `usize`, found struct `foo` |
480 | | | | |
481 | | arguments to this function are incorrect | |
8faf50e0 | 482 | | |
60c5eb7d XL |
483 | = note: expected struct `Foo<usize, _>` |
484 | found struct `Foo<foo, _>` | |
923072b8 FG |
485 | note: function defined here |
486 | --> $DIR/type-mismatch.rs:14:4 | |
487 | | | |
488 | LL | fn want<T>(t: T) {} | |
489 | | ^^^^ ---- | |
8faf50e0 XL |
490 | |
491 | error[E0308]: mismatched types | |
0731742a | 492 | --> $DIR/type-mismatch.rs:57:22 |
8faf50e0 | 493 | | |
532ac7d7 | 494 | LL | want::<Foo<foo>>(f); |
923072b8 FG |
495 | | ---------------- ^ expected struct `A`, found struct `B` |
496 | | | | |
497 | | arguments to this function are incorrect | |
8faf50e0 | 498 | | |
60c5eb7d XL |
499 | = note: expected struct `Foo<_, A>` |
500 | found struct `Foo<_, B>` | |
923072b8 FG |
501 | note: function defined here |
502 | --> $DIR/type-mismatch.rs:14:4 | |
503 | | | |
504 | LL | fn want<T>(t: T) {} | |
505 | | ^^^^ ---- | |
8faf50e0 XL |
506 | |
507 | error[E0308]: mismatched types | |
0731742a | 508 | --> $DIR/type-mismatch.rs:58:22 |
8faf50e0 | 509 | | |
532ac7d7 | 510 | LL | want::<Foo<bar>>(f); |
923072b8 FG |
511 | | ---------------- ^ expected struct `bar`, found struct `foo` |
512 | | | | |
513 | | arguments to this function are incorrect | |
8faf50e0 | 514 | | |
60c5eb7d XL |
515 | = note: expected struct `Foo<bar, A>` |
516 | found struct `Foo<foo, B>` | |
923072b8 FG |
517 | note: function defined here |
518 | --> $DIR/type-mismatch.rs:14:4 | |
519 | | | |
520 | LL | fn want<T>(t: T) {} | |
521 | | ^^^^ ---- | |
8faf50e0 XL |
522 | |
523 | error[E0308]: mismatched types | |
0731742a | 524 | --> $DIR/type-mismatch.rs:59:25 |
8faf50e0 | 525 | | |
532ac7d7 | 526 | LL | want::<Foo<bar, B>>(f); |
923072b8 FG |
527 | | ------------------- ^ expected struct `bar`, found struct `foo` |
528 | | | | |
529 | | arguments to this function are incorrect | |
8faf50e0 | 530 | | |
60c5eb7d XL |
531 | = note: expected struct `Foo<bar, _>` |
532 | found struct `Foo<foo, _>` | |
923072b8 FG |
533 | note: function defined here |
534 | --> $DIR/type-mismatch.rs:14:4 | |
535 | | | |
536 | LL | fn want<T>(t: T) {} | |
537 | | ^^^^ ---- | |
8faf50e0 XL |
538 | |
539 | error[E0308]: mismatched types | |
0731742a | 540 | --> $DIR/type-mismatch.rs:60:23 |
8faf50e0 | 541 | | |
532ac7d7 | 542 | LL | want::<&Foo<foo>>(f); |
923072b8 FG |
543 | | ----------------- ^ expected `&Foo<foo>`, found struct `Foo` |
544 | | | | |
545 | | arguments to this function are incorrect | |
8faf50e0 | 546 | | |
60c5eb7d XL |
547 | = note: expected reference `&Foo<foo>` |
548 | found struct `Foo<foo, B>` | |
923072b8 FG |
549 | note: function defined here |
550 | --> $DIR/type-mismatch.rs:14:4 | |
551 | | | |
552 | LL | fn want<T>(t: T) {} | |
553 | | ^^^^ ---- | |
8faf50e0 XL |
554 | |
555 | error[E0308]: mismatched types | |
0731742a | 556 | --> $DIR/type-mismatch.rs:61:26 |
8faf50e0 | 557 | | |
532ac7d7 | 558 | LL | want::<&Foo<foo, B>>(f); |
923072b8 FG |
559 | | -------------------- ^ |
560 | | | | | |
561 | | | expected `&Foo<foo, B>`, found struct `Foo` | |
562 | | | help: consider borrowing here: `&f` | |
563 | | arguments to this function are incorrect | |
8faf50e0 | 564 | | |
60c5eb7d XL |
565 | = note: expected reference `&Foo<foo, B>` |
566 | found struct `Foo<foo, B>` | |
923072b8 FG |
567 | note: function defined here |
568 | --> $DIR/type-mismatch.rs:14:4 | |
569 | | | |
570 | LL | fn want<T>(t: T) {} | |
571 | | ^^^^ ---- | |
8faf50e0 XL |
572 | |
573 | error[E0308]: mismatched types | |
0731742a | 574 | --> $DIR/type-mismatch.rs:65:19 |
8faf50e0 | 575 | | |
532ac7d7 | 576 | LL | want::<usize>(f); |
923072b8 FG |
577 | | ------------- ^ expected `usize`, found struct `Foo` |
578 | | | | |
579 | | arguments to this function are incorrect | |
8faf50e0 XL |
580 | | |
581 | = note: expected type `usize` | |
60c5eb7d | 582 | found struct `Foo<foo, B, A>` |
923072b8 FG |
583 | note: function defined here |
584 | --> $DIR/type-mismatch.rs:14:4 | |
585 | | | |
586 | LL | fn want<T>(t: T) {} | |
587 | | ^^^^ ---- | |
8faf50e0 XL |
588 | |
589 | error[E0308]: mismatched types | |
0731742a | 590 | --> $DIR/type-mismatch.rs:66:17 |
8faf50e0 | 591 | | |
532ac7d7 | 592 | LL | want::<foo>(f); |
923072b8 FG |
593 | | ----------- ^ expected struct `foo`, found struct `Foo` |
594 | | | | |
595 | | arguments to this function are incorrect | |
8faf50e0 | 596 | | |
60c5eb7d XL |
597 | = note: expected struct `foo` |
598 | found struct `Foo<foo, B, A>` | |
923072b8 FG |
599 | note: function defined here |
600 | --> $DIR/type-mismatch.rs:14:4 | |
601 | | | |
602 | LL | fn want<T>(t: T) {} | |
603 | | ^^^^ ---- | |
8faf50e0 XL |
604 | |
605 | error[E0308]: mismatched types | |
0731742a | 606 | --> $DIR/type-mismatch.rs:67:17 |
8faf50e0 | 607 | | |
532ac7d7 | 608 | LL | want::<bar>(f); |
923072b8 FG |
609 | | ----------- ^ expected struct `bar`, found struct `Foo` |
610 | | | | |
611 | | arguments to this function are incorrect | |
8faf50e0 | 612 | | |
60c5eb7d XL |
613 | = note: expected struct `bar` |
614 | found struct `Foo<foo, B, A>` | |
923072b8 FG |
615 | note: function defined here |
616 | --> $DIR/type-mismatch.rs:14:4 | |
617 | | | |
618 | LL | fn want<T>(t: T) {} | |
619 | | ^^^^ ---- | |
8faf50e0 XL |
620 | |
621 | error[E0308]: mismatched types | |
0731742a | 622 | --> $DIR/type-mismatch.rs:68:24 |
8faf50e0 | 623 | | |
532ac7d7 | 624 | LL | want::<Foo<usize>>(f); |
923072b8 FG |
625 | | ------------------ ^ expected `usize`, found struct `foo` |
626 | | | | |
627 | | arguments to this function are incorrect | |
8faf50e0 | 628 | | |
60c5eb7d XL |
629 | = note: expected struct `Foo<usize, A, B>` |
630 | found struct `Foo<foo, B, A>` | |
923072b8 FG |
631 | note: function defined here |
632 | --> $DIR/type-mismatch.rs:14:4 | |
633 | | | |
634 | LL | fn want<T>(t: T) {} | |
635 | | ^^^^ ---- | |
8faf50e0 XL |
636 | |
637 | error[E0308]: mismatched types | |
0731742a | 638 | --> $DIR/type-mismatch.rs:69:27 |
8faf50e0 | 639 | | |
532ac7d7 | 640 | LL | want::<Foo<usize, B>>(f); |
923072b8 FG |
641 | | --------------------- ^ expected `usize`, found struct `foo` |
642 | | | | |
643 | | arguments to this function are incorrect | |
8faf50e0 | 644 | | |
60c5eb7d XL |
645 | = note: expected struct `Foo<usize, _, B>` |
646 | found struct `Foo<foo, _, A>` | |
923072b8 FG |
647 | note: function defined here |
648 | --> $DIR/type-mismatch.rs:14:4 | |
649 | | | |
650 | LL | fn want<T>(t: T) {} | |
651 | | ^^^^ ---- | |
8faf50e0 XL |
652 | |
653 | error[E0308]: mismatched types | |
0731742a | 654 | --> $DIR/type-mismatch.rs:70:22 |
8faf50e0 | 655 | | |
532ac7d7 | 656 | LL | want::<Foo<foo>>(f); |
923072b8 FG |
657 | | ---------------- ^ expected struct `A`, found struct `B` |
658 | | | | |
659 | | arguments to this function are incorrect | |
8faf50e0 | 660 | | |
60c5eb7d XL |
661 | = note: expected struct `Foo<_, A, B>` |
662 | found struct `Foo<_, B, A>` | |
923072b8 FG |
663 | note: function defined here |
664 | --> $DIR/type-mismatch.rs:14:4 | |
665 | | | |
666 | LL | fn want<T>(t: T) {} | |
667 | | ^^^^ ---- | |
8faf50e0 XL |
668 | |
669 | error[E0308]: mismatched types | |
0731742a | 670 | --> $DIR/type-mismatch.rs:71:25 |
8faf50e0 | 671 | | |
532ac7d7 | 672 | LL | want::<Foo<foo, B>>(f); |
923072b8 FG |
673 | | ------------------- ^ expected struct `B`, found struct `A` |
674 | | | | |
675 | | arguments to this function are incorrect | |
8faf50e0 | 676 | | |
60c5eb7d XL |
677 | = note: expected struct `Foo<_, _, B>` |
678 | found struct `Foo<_, _, A>` | |
923072b8 FG |
679 | note: function defined here |
680 | --> $DIR/type-mismatch.rs:14:4 | |
681 | | | |
682 | LL | fn want<T>(t: T) {} | |
683 | | ^^^^ ---- | |
8faf50e0 XL |
684 | |
685 | error[E0308]: mismatched types | |
0731742a | 686 | --> $DIR/type-mismatch.rs:72:22 |
8faf50e0 | 687 | | |
532ac7d7 | 688 | LL | want::<Foo<bar>>(f); |
923072b8 FG |
689 | | ---------------- ^ expected struct `bar`, found struct `foo` |
690 | | | | |
691 | | arguments to this function are incorrect | |
8faf50e0 | 692 | | |
60c5eb7d XL |
693 | = note: expected struct `Foo<bar, A, B>` |
694 | found struct `Foo<foo, B, A>` | |
923072b8 FG |
695 | note: function defined here |
696 | --> $DIR/type-mismatch.rs:14:4 | |
697 | | | |
698 | LL | fn want<T>(t: T) {} | |
699 | | ^^^^ ---- | |
8faf50e0 XL |
700 | |
701 | error[E0308]: mismatched types | |
0731742a | 702 | --> $DIR/type-mismatch.rs:73:25 |
8faf50e0 | 703 | | |
532ac7d7 | 704 | LL | want::<Foo<bar, B>>(f); |
923072b8 FG |
705 | | ------------------- ^ expected struct `bar`, found struct `foo` |
706 | | | | |
707 | | arguments to this function are incorrect | |
8faf50e0 | 708 | | |
60c5eb7d XL |
709 | = note: expected struct `Foo<bar, _, B>` |
710 | found struct `Foo<foo, _, A>` | |
923072b8 FG |
711 | note: function defined here |
712 | --> $DIR/type-mismatch.rs:14:4 | |
713 | | | |
714 | LL | fn want<T>(t: T) {} | |
715 | | ^^^^ ---- | |
8faf50e0 XL |
716 | |
717 | error[E0308]: mismatched types | |
0731742a | 718 | --> $DIR/type-mismatch.rs:74:23 |
8faf50e0 | 719 | | |
532ac7d7 | 720 | LL | want::<&Foo<foo>>(f); |
923072b8 FG |
721 | | ----------------- ^ expected `&Foo<foo>`, found struct `Foo` |
722 | | | | |
723 | | arguments to this function are incorrect | |
8faf50e0 | 724 | | |
60c5eb7d XL |
725 | = note: expected reference `&Foo<foo>` |
726 | found struct `Foo<foo, B, A>` | |
923072b8 FG |
727 | note: function defined here |
728 | --> $DIR/type-mismatch.rs:14:4 | |
729 | | | |
730 | LL | fn want<T>(t: T) {} | |
731 | | ^^^^ ---- | |
8faf50e0 XL |
732 | |
733 | error[E0308]: mismatched types | |
0731742a | 734 | --> $DIR/type-mismatch.rs:75:26 |
8faf50e0 | 735 | | |
532ac7d7 | 736 | LL | want::<&Foo<foo, B>>(f); |
923072b8 FG |
737 | | -------------------- ^ expected `&Foo<foo, B>`, found struct `Foo` |
738 | | | | |
739 | | arguments to this function are incorrect | |
8faf50e0 | 740 | | |
60c5eb7d XL |
741 | = note: expected reference `&Foo<foo, B>` |
742 | found struct `Foo<foo, B, A>` | |
923072b8 FG |
743 | note: function defined here |
744 | --> $DIR/type-mismatch.rs:14:4 | |
745 | | | |
746 | LL | fn want<T>(t: T) {} | |
747 | | ^^^^ ---- | |
8faf50e0 XL |
748 | |
749 | error: aborting due to 47 previous errors | |
750 | ||
751 | For more information about this error, try `rustc --explain E0308`. |