1 error[E0308]: mismatched types
2 --> $DIR/type-mismatch.rs:17:17
5 | ----------- ^ expected struct `foo`, found `usize`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/type-mismatch.rs:14:4
12 LL | fn want<T>(t: T) {}
15 error[E0308]: mismatched types
16 --> $DIR/type-mismatch.rs:18:17
19 | ----------- ^ expected struct `bar`, found `usize`
21 | arguments to this function are incorrect
23 note: function defined here
24 --> $DIR/type-mismatch.rs:14:4
26 LL | fn want<T>(t: T) {}
29 error[E0308]: mismatched types
30 --> $DIR/type-mismatch.rs:19:24
32 LL | want::<Foo<usize>>(f);
33 | ------------------ ^ expected struct `Foo`, found `usize`
35 | arguments to this function are incorrect
37 = note: expected struct `Foo<usize>`
39 note: function defined here
40 --> $DIR/type-mismatch.rs:14:4
42 LL | fn want<T>(t: T) {}
45 error[E0308]: mismatched types
46 --> $DIR/type-mismatch.rs:20:27
48 LL | want::<Foo<usize, B>>(f);
49 | --------------------- ^ expected struct `Foo`, found `usize`
51 | arguments to this function are incorrect
53 = note: expected struct `Foo<usize, B>`
55 note: function defined here
56 --> $DIR/type-mismatch.rs:14:4
58 LL | fn want<T>(t: T) {}
61 error[E0308]: mismatched types
62 --> $DIR/type-mismatch.rs:21:22
64 LL | want::<Foo<foo>>(f);
65 | ---------------- ^ expected struct `Foo`, found `usize`
67 | arguments to this function are incorrect
69 = note: expected struct `Foo<foo>`
71 note: function defined here
72 --> $DIR/type-mismatch.rs:14:4
74 LL | fn want<T>(t: T) {}
77 error[E0308]: mismatched types
78 --> $DIR/type-mismatch.rs:22:25
80 LL | want::<Foo<foo, B>>(f);
81 | ------------------- ^ expected struct `Foo`, found `usize`
83 | arguments to this function are incorrect
85 = note: expected struct `Foo<foo, B>`
87 note: function defined here
88 --> $DIR/type-mismatch.rs:14:4
90 LL | fn want<T>(t: T) {}
93 error[E0308]: mismatched types
94 --> $DIR/type-mismatch.rs:23:22
96 LL | want::<Foo<bar>>(f);
97 | ---------------- ^ expected struct `Foo`, found `usize`
99 | arguments to this function are incorrect
101 = note: expected struct `Foo<bar>`
103 note: function defined here
104 --> $DIR/type-mismatch.rs:14:4
106 LL | fn want<T>(t: T) {}
109 error[E0308]: mismatched types
110 --> $DIR/type-mismatch.rs:24:25
112 LL | want::<Foo<bar, B>>(f);
113 | ------------------- ^ expected struct `Foo`, found `usize`
115 | arguments to this function are incorrect
117 = note: expected struct `Foo<bar, B>`
119 note: function defined here
120 --> $DIR/type-mismatch.rs:14:4
122 LL | fn want<T>(t: T) {}
125 error[E0308]: mismatched types
126 --> $DIR/type-mismatch.rs:28:19
128 LL | want::<usize>(f);
129 | ------------- ^ expected `usize`, found struct `foo`
131 | arguments to this function are incorrect
133 note: function defined here
134 --> $DIR/type-mismatch.rs:14:4
136 LL | fn want<T>(t: T) {}
139 error[E0308]: mismatched types
140 --> $DIR/type-mismatch.rs:29:17
143 | ----------- ^ expected struct `bar`, found struct `foo`
145 | arguments to this function are incorrect
147 note: function defined here
148 --> $DIR/type-mismatch.rs:14:4
150 LL | fn want<T>(t: T) {}
153 error[E0308]: mismatched types
154 --> $DIR/type-mismatch.rs:30:24
156 LL | want::<Foo<usize>>(f);
157 | ------------------ ^ expected struct `Foo`, found struct `foo`
159 | arguments to this function are incorrect
161 = note: expected struct `Foo<usize>`
163 note: function defined here
164 --> $DIR/type-mismatch.rs:14:4
166 LL | fn want<T>(t: T) {}
169 error[E0308]: mismatched types
170 --> $DIR/type-mismatch.rs:31:27
172 LL | want::<Foo<usize, B>>(f);
173 | --------------------- ^ expected struct `Foo`, found struct `foo`
175 | arguments to this function are incorrect
177 = note: expected struct `Foo<usize, B>`
179 note: function defined here
180 --> $DIR/type-mismatch.rs:14:4
182 LL | fn want<T>(t: T) {}
185 error[E0308]: mismatched types
186 --> $DIR/type-mismatch.rs:32:22
188 LL | want::<Foo<foo>>(f);
189 | ---------------- ^ expected struct `Foo`, found struct `foo`
191 | arguments to this function are incorrect
193 = note: expected struct `Foo<foo>`
195 note: function defined here
196 --> $DIR/type-mismatch.rs:14:4
198 LL | fn want<T>(t: T) {}
201 error[E0308]: mismatched types
202 --> $DIR/type-mismatch.rs:33:25
204 LL | want::<Foo<foo, B>>(f);
205 | ------------------- ^ expected struct `Foo`, found struct `foo`
207 | arguments to this function are incorrect
209 = note: expected struct `Foo<foo, B>`
211 note: function defined here
212 --> $DIR/type-mismatch.rs:14:4
214 LL | fn want<T>(t: T) {}
217 error[E0308]: mismatched types
218 --> $DIR/type-mismatch.rs:34:22
220 LL | want::<Foo<bar>>(f);
221 | ---------------- ^ expected struct `Foo`, found struct `foo`
223 | arguments to this function are incorrect
225 = note: expected struct `Foo<bar>`
227 note: function defined here
228 --> $DIR/type-mismatch.rs:14:4
230 LL | fn want<T>(t: T) {}
233 error[E0308]: mismatched types
234 --> $DIR/type-mismatch.rs:35:25
236 LL | want::<Foo<bar, B>>(f);
237 | ------------------- ^ expected struct `Foo`, found struct `foo`
239 | arguments to this function are incorrect
241 = note: expected struct `Foo<bar, B>`
243 note: function defined here
244 --> $DIR/type-mismatch.rs:14:4
246 LL | fn want<T>(t: T) {}
249 error[E0308]: mismatched types
250 --> $DIR/type-mismatch.rs:39:19
252 LL | want::<usize>(f);
253 | ------------- ^ expected `usize`, found struct `Foo`
255 | arguments to this function are incorrect
257 = note: expected type `usize`
258 found struct `Foo<foo>`
259 note: function defined here
260 --> $DIR/type-mismatch.rs:14:4
262 LL | fn want<T>(t: T) {}
265 error[E0308]: mismatched types
266 --> $DIR/type-mismatch.rs:40:17
269 | ----------- ^ expected struct `foo`, found struct `Foo`
271 | arguments to this function are incorrect
273 = note: expected struct `foo`
274 found struct `Foo<foo>`
275 note: function defined here
276 --> $DIR/type-mismatch.rs:14:4
278 LL | fn want<T>(t: T) {}
281 error[E0308]: mismatched types
282 --> $DIR/type-mismatch.rs:41:17
285 | ----------- ^ expected struct `bar`, found struct `Foo`
287 | arguments to this function are incorrect
289 = note: expected struct `bar`
290 found struct `Foo<foo>`
291 note: function defined here
292 --> $DIR/type-mismatch.rs:14:4
294 LL | fn want<T>(t: T) {}
297 error[E0308]: mismatched types
298 --> $DIR/type-mismatch.rs:42:24
300 LL | want::<Foo<usize>>(f);
301 | ------------------ ^ expected `usize`, found struct `foo`
303 | arguments to this function are incorrect
305 = note: expected struct `Foo<usize>`
306 found struct `Foo<foo>`
307 note: function defined here
308 --> $DIR/type-mismatch.rs:14:4
310 LL | fn want<T>(t: T) {}
313 error[E0308]: mismatched types
314 --> $DIR/type-mismatch.rs:43:27
316 LL | want::<Foo<usize, B>>(f);
317 | --------------------- ^ expected `usize`, found struct `foo`
319 | arguments to this function are incorrect
321 = note: expected struct `Foo<usize, B>`
322 found struct `Foo<foo, A>`
323 note: function defined here
324 --> $DIR/type-mismatch.rs:14:4
326 LL | fn want<T>(t: T) {}
329 error[E0308]: mismatched types
330 --> $DIR/type-mismatch.rs:44:25
332 LL | want::<Foo<foo, B>>(f);
333 | ------------------- ^ expected struct `B`, found struct `A`
335 | arguments to this function are incorrect
337 = note: expected struct `Foo<_, B>`
338 found struct `Foo<_, A>`
339 note: function defined here
340 --> $DIR/type-mismatch.rs:14:4
342 LL | fn want<T>(t: T) {}
345 error[E0308]: mismatched types
346 --> $DIR/type-mismatch.rs:45:22
348 LL | want::<Foo<bar>>(f);
349 | ---------------- ^ expected struct `bar`, found struct `foo`
351 | arguments to this function are incorrect
353 = note: expected struct `Foo<bar>`
354 found struct `Foo<foo>`
355 note: function defined here
356 --> $DIR/type-mismatch.rs:14:4
358 LL | fn want<T>(t: T) {}
361 error[E0308]: mismatched types
362 --> $DIR/type-mismatch.rs:46:25
364 LL | want::<Foo<bar, B>>(f);
365 | ------------------- ^ expected struct `bar`, found struct `foo`
367 | arguments to this function are incorrect
369 = note: expected struct `Foo<bar, B>`
370 found struct `Foo<foo, A>`
371 note: function defined here
372 --> $DIR/type-mismatch.rs:14:4
374 LL | fn want<T>(t: T) {}
377 error[E0308]: mismatched types
378 --> $DIR/type-mismatch.rs:47:23
380 LL | want::<&Foo<foo>>(f);
381 | ----------------- ^
383 | | expected `&Foo<foo>`, found struct `Foo`
384 | | help: consider borrowing here: `&f`
385 | arguments to this function are incorrect
387 = note: expected reference `&Foo<foo>`
388 found struct `Foo<foo>`
389 note: function defined here
390 --> $DIR/type-mismatch.rs:14:4
392 LL | fn want<T>(t: T) {}
395 error[E0308]: mismatched types
396 --> $DIR/type-mismatch.rs:48:26
398 LL | want::<&Foo<foo, B>>(f);
399 | -------------------- ^ expected `&Foo<foo, B>`, found struct `Foo`
401 | arguments to this function are incorrect
403 = note: expected reference `&Foo<foo, B>`
404 found struct `Foo<foo>`
405 note: function defined here
406 --> $DIR/type-mismatch.rs:14:4
408 LL | fn want<T>(t: T) {}
411 error[E0308]: mismatched types
412 --> $DIR/type-mismatch.rs:52:19
414 LL | want::<usize>(f);
415 | ------------- ^ expected `usize`, found struct `Foo`
417 | arguments to this function are incorrect
419 = note: expected type `usize`
420 found struct `Foo<foo, B>`
421 note: function defined here
422 --> $DIR/type-mismatch.rs:14:4
424 LL | fn want<T>(t: T) {}
427 error[E0308]: mismatched types
428 --> $DIR/type-mismatch.rs:53:17
431 | ----------- ^ expected struct `foo`, found struct `Foo`
433 | arguments to this function are incorrect
435 = note: expected struct `foo`
436 found struct `Foo<foo, B>`
437 note: function defined here
438 --> $DIR/type-mismatch.rs:14:4
440 LL | fn want<T>(t: T) {}
443 error[E0308]: mismatched types
444 --> $DIR/type-mismatch.rs:54:17
447 | ----------- ^ expected struct `bar`, found struct `Foo`
449 | arguments to this function are incorrect
451 = note: expected struct `bar`
452 found struct `Foo<foo, B>`
453 note: function defined here
454 --> $DIR/type-mismatch.rs:14:4
456 LL | fn want<T>(t: T) {}
459 error[E0308]: mismatched types
460 --> $DIR/type-mismatch.rs:55:24
462 LL | want::<Foo<usize>>(f);
463 | ------------------ ^ expected `usize`, found struct `foo`
465 | arguments to this function are incorrect
467 = note: expected struct `Foo<usize, A>`
468 found struct `Foo<foo, B>`
469 note: function defined here
470 --> $DIR/type-mismatch.rs:14:4
472 LL | fn want<T>(t: T) {}
475 error[E0308]: mismatched types
476 --> $DIR/type-mismatch.rs:56:27
478 LL | want::<Foo<usize, B>>(f);
479 | --------------------- ^ expected `usize`, found struct `foo`
481 | arguments to this function are incorrect
483 = note: expected struct `Foo<usize, _>`
484 found struct `Foo<foo, _>`
485 note: function defined here
486 --> $DIR/type-mismatch.rs:14:4
488 LL | fn want<T>(t: T) {}
491 error[E0308]: mismatched types
492 --> $DIR/type-mismatch.rs:57:22
494 LL | want::<Foo<foo>>(f);
495 | ---------------- ^ expected struct `A`, found struct `B`
497 | arguments to this function are incorrect
499 = note: expected struct `Foo<_, A>`
500 found struct `Foo<_, B>`
501 note: function defined here
502 --> $DIR/type-mismatch.rs:14:4
504 LL | fn want<T>(t: T) {}
507 error[E0308]: mismatched types
508 --> $DIR/type-mismatch.rs:58:22
510 LL | want::<Foo<bar>>(f);
511 | ---------------- ^ expected struct `bar`, found struct `foo`
513 | arguments to this function are incorrect
515 = note: expected struct `Foo<bar, A>`
516 found struct `Foo<foo, B>`
517 note: function defined here
518 --> $DIR/type-mismatch.rs:14:4
520 LL | fn want<T>(t: T) {}
523 error[E0308]: mismatched types
524 --> $DIR/type-mismatch.rs:59:25
526 LL | want::<Foo<bar, B>>(f);
527 | ------------------- ^ expected struct `bar`, found struct `foo`
529 | arguments to this function are incorrect
531 = note: expected struct `Foo<bar, _>`
532 found struct `Foo<foo, _>`
533 note: function defined here
534 --> $DIR/type-mismatch.rs:14:4
536 LL | fn want<T>(t: T) {}
539 error[E0308]: mismatched types
540 --> $DIR/type-mismatch.rs:60:23
542 LL | want::<&Foo<foo>>(f);
543 | ----------------- ^ expected `&Foo<foo>`, found struct `Foo`
545 | arguments to this function are incorrect
547 = note: expected reference `&Foo<foo>`
548 found struct `Foo<foo, B>`
549 note: function defined here
550 --> $DIR/type-mismatch.rs:14:4
552 LL | fn want<T>(t: T) {}
555 error[E0308]: mismatched types
556 --> $DIR/type-mismatch.rs:61:26
558 LL | want::<&Foo<foo, B>>(f);
559 | -------------------- ^
561 | | expected `&Foo<foo, B>`, found struct `Foo`
562 | | help: consider borrowing here: `&f`
563 | arguments to this function are incorrect
565 = note: expected reference `&Foo<foo, B>`
566 found struct `Foo<foo, B>`
567 note: function defined here
568 --> $DIR/type-mismatch.rs:14:4
570 LL | fn want<T>(t: T) {}
573 error[E0308]: mismatched types
574 --> $DIR/type-mismatch.rs:65:19
576 LL | want::<usize>(f);
577 | ------------- ^ expected `usize`, found struct `Foo`
579 | arguments to this function are incorrect
581 = note: expected type `usize`
582 found struct `Foo<foo, B, A>`
583 note: function defined here
584 --> $DIR/type-mismatch.rs:14:4
586 LL | fn want<T>(t: T) {}
589 error[E0308]: mismatched types
590 --> $DIR/type-mismatch.rs:66:17
593 | ----------- ^ expected struct `foo`, found struct `Foo`
595 | arguments to this function are incorrect
597 = note: expected struct `foo`
598 found struct `Foo<foo, B, A>`
599 note: function defined here
600 --> $DIR/type-mismatch.rs:14:4
602 LL | fn want<T>(t: T) {}
605 error[E0308]: mismatched types
606 --> $DIR/type-mismatch.rs:67:17
609 | ----------- ^ expected struct `bar`, found struct `Foo`
611 | arguments to this function are incorrect
613 = note: expected struct `bar`
614 found struct `Foo<foo, B, A>`
615 note: function defined here
616 --> $DIR/type-mismatch.rs:14:4
618 LL | fn want<T>(t: T) {}
621 error[E0308]: mismatched types
622 --> $DIR/type-mismatch.rs:68:24
624 LL | want::<Foo<usize>>(f);
625 | ------------------ ^ expected `usize`, found struct `foo`
627 | arguments to this function are incorrect
629 = note: expected struct `Foo<usize, A, B>`
630 found struct `Foo<foo, B, A>`
631 note: function defined here
632 --> $DIR/type-mismatch.rs:14:4
634 LL | fn want<T>(t: T) {}
637 error[E0308]: mismatched types
638 --> $DIR/type-mismatch.rs:69:27
640 LL | want::<Foo<usize, B>>(f);
641 | --------------------- ^ expected `usize`, found struct `foo`
643 | arguments to this function are incorrect
645 = note: expected struct `Foo<usize, _, B>`
646 found struct `Foo<foo, _, A>`
647 note: function defined here
648 --> $DIR/type-mismatch.rs:14:4
650 LL | fn want<T>(t: T) {}
653 error[E0308]: mismatched types
654 --> $DIR/type-mismatch.rs:70:22
656 LL | want::<Foo<foo>>(f);
657 | ---------------- ^ expected struct `A`, found struct `B`
659 | arguments to this function are incorrect
661 = note: expected struct `Foo<_, A, B>`
662 found struct `Foo<_, B, A>`
663 note: function defined here
664 --> $DIR/type-mismatch.rs:14:4
666 LL | fn want<T>(t: T) {}
669 error[E0308]: mismatched types
670 --> $DIR/type-mismatch.rs:71:25
672 LL | want::<Foo<foo, B>>(f);
673 | ------------------- ^ expected struct `B`, found struct `A`
675 | arguments to this function are incorrect
677 = note: expected struct `Foo<_, _, B>`
678 found struct `Foo<_, _, A>`
679 note: function defined here
680 --> $DIR/type-mismatch.rs:14:4
682 LL | fn want<T>(t: T) {}
685 error[E0308]: mismatched types
686 --> $DIR/type-mismatch.rs:72:22
688 LL | want::<Foo<bar>>(f);
689 | ---------------- ^ expected struct `bar`, found struct `foo`
691 | arguments to this function are incorrect
693 = note: expected struct `Foo<bar, A, B>`
694 found struct `Foo<foo, B, A>`
695 note: function defined here
696 --> $DIR/type-mismatch.rs:14:4
698 LL | fn want<T>(t: T) {}
701 error[E0308]: mismatched types
702 --> $DIR/type-mismatch.rs:73:25
704 LL | want::<Foo<bar, B>>(f);
705 | ------------------- ^ expected struct `bar`, found struct `foo`
707 | arguments to this function are incorrect
709 = note: expected struct `Foo<bar, _, B>`
710 found struct `Foo<foo, _, A>`
711 note: function defined here
712 --> $DIR/type-mismatch.rs:14:4
714 LL | fn want<T>(t: T) {}
717 error[E0308]: mismatched types
718 --> $DIR/type-mismatch.rs:74:23
720 LL | want::<&Foo<foo>>(f);
721 | ----------------- ^ expected `&Foo<foo>`, found struct `Foo`
723 | arguments to this function are incorrect
725 = note: expected reference `&Foo<foo>`
726 found struct `Foo<foo, B, A>`
727 note: function defined here
728 --> $DIR/type-mismatch.rs:14:4
730 LL | fn want<T>(t: T) {}
733 error[E0308]: mismatched types
734 --> $DIR/type-mismatch.rs:75:26
736 LL | want::<&Foo<foo, B>>(f);
737 | -------------------- ^ expected `&Foo<foo, B>`, found struct `Foo`
739 | arguments to this function are incorrect
741 = note: expected reference `&Foo<foo, B>`
742 found struct `Foo<foo, B, A>`
743 note: function defined here
744 --> $DIR/type-mismatch.rs:14:4
746 LL | fn want<T>(t: T) {}
749 error: aborting due to 47 previous errors
751 For more information about this error, try `rustc --explain E0308`.