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