]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/type-mismatch.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / type / type-mismatch.stderr
CommitLineData
8faf50e0 1error[E0308]: mismatched types
0731742a 2 --> $DIR/type-mismatch.rs:17:17
8faf50e0 3 |
532ac7d7 4LL | want::<foo>(f);
923072b8
FG
5 | ----------- ^ expected struct `foo`, found `usize`
6 | |
7 | arguments to this function are incorrect
8 |
9note: function defined here
10 --> $DIR/type-mismatch.rs:14:4
11 |
12LL | fn want<T>(t: T) {}
13 | ^^^^ ----
8faf50e0
XL
14
15error[E0308]: mismatched types
0731742a 16 --> $DIR/type-mismatch.rs:18:17
8faf50e0 17 |
532ac7d7 18LL | want::<bar>(f);
923072b8
FG
19 | ----------- ^ expected struct `bar`, found `usize`
20 | |
21 | arguments to this function are incorrect
22 |
23note: function defined here
24 --> $DIR/type-mismatch.rs:14:4
25 |
26LL | fn want<T>(t: T) {}
27 | ^^^^ ----
8faf50e0
XL
28
29error[E0308]: mismatched types
0731742a 30 --> $DIR/type-mismatch.rs:19:24
8faf50e0 31 |
532ac7d7 32LL | 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
39note: function defined here
40 --> $DIR/type-mismatch.rs:14:4
41 |
42LL | fn want<T>(t: T) {}
43 | ^^^^ ----
8faf50e0
XL
44
45error[E0308]: mismatched types
0731742a 46 --> $DIR/type-mismatch.rs:20:27
8faf50e0 47 |
532ac7d7 48LL | 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
55note: function defined here
56 --> $DIR/type-mismatch.rs:14:4
57 |
58LL | fn want<T>(t: T) {}
59 | ^^^^ ----
8faf50e0
XL
60
61error[E0308]: mismatched types
0731742a 62 --> $DIR/type-mismatch.rs:21:22
8faf50e0 63 |
532ac7d7 64LL | 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
71note: function defined here
72 --> $DIR/type-mismatch.rs:14:4
73 |
74LL | fn want<T>(t: T) {}
75 | ^^^^ ----
8faf50e0
XL
76
77error[E0308]: mismatched types
0731742a 78 --> $DIR/type-mismatch.rs:22:25
8faf50e0 79 |
532ac7d7 80LL | 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
87note: function defined here
88 --> $DIR/type-mismatch.rs:14:4
89 |
90LL | fn want<T>(t: T) {}
91 | ^^^^ ----
8faf50e0
XL
92
93error[E0308]: mismatched types
0731742a 94 --> $DIR/type-mismatch.rs:23:22
8faf50e0 95 |
532ac7d7 96LL | 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
103note: function defined here
104 --> $DIR/type-mismatch.rs:14:4
105 |
106LL | fn want<T>(t: T) {}
107 | ^^^^ ----
8faf50e0
XL
108
109error[E0308]: mismatched types
0731742a 110 --> $DIR/type-mismatch.rs:24:25
8faf50e0 111 |
532ac7d7 112LL | 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
119note: function defined here
120 --> $DIR/type-mismatch.rs:14:4
121 |
122LL | fn want<T>(t: T) {}
123 | ^^^^ ----
8faf50e0
XL
124
125error[E0308]: mismatched types
0731742a 126 --> $DIR/type-mismatch.rs:28:19
8faf50e0 127 |
532ac7d7 128LL | want::<usize>(f);
923072b8
FG
129 | ------------- ^ expected `usize`, found struct `foo`
130 | |
131 | arguments to this function are incorrect
132 |
133note: function defined here
134 --> $DIR/type-mismatch.rs:14:4
135 |
136LL | fn want<T>(t: T) {}
137 | ^^^^ ----
8faf50e0
XL
138
139error[E0308]: mismatched types
0731742a 140 --> $DIR/type-mismatch.rs:29:17
8faf50e0 141 |
532ac7d7 142LL | want::<bar>(f);
923072b8
FG
143 | ----------- ^ expected struct `bar`, found struct `foo`
144 | |
145 | arguments to this function are incorrect
146 |
147note: function defined here
148 --> $DIR/type-mismatch.rs:14:4
149 |
150LL | fn want<T>(t: T) {}
151 | ^^^^ ----
8faf50e0
XL
152
153error[E0308]: mismatched types
0731742a 154 --> $DIR/type-mismatch.rs:30:24
8faf50e0 155 |
532ac7d7 156LL | 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
163note: function defined here
164 --> $DIR/type-mismatch.rs:14:4
165 |
166LL | fn want<T>(t: T) {}
167 | ^^^^ ----
8faf50e0
XL
168
169error[E0308]: mismatched types
0731742a 170 --> $DIR/type-mismatch.rs:31:27
8faf50e0 171 |
532ac7d7 172LL | 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
179note: function defined here
180 --> $DIR/type-mismatch.rs:14:4
181 |
182LL | fn want<T>(t: T) {}
183 | ^^^^ ----
8faf50e0
XL
184
185error[E0308]: mismatched types
0731742a 186 --> $DIR/type-mismatch.rs:32:22
8faf50e0 187 |
532ac7d7 188LL | 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
195note: function defined here
196 --> $DIR/type-mismatch.rs:14:4
197 |
198LL | fn want<T>(t: T) {}
199 | ^^^^ ----
8faf50e0
XL
200
201error[E0308]: mismatched types
0731742a 202 --> $DIR/type-mismatch.rs:33:25
8faf50e0 203 |
532ac7d7 204LL | 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
211note: function defined here
212 --> $DIR/type-mismatch.rs:14:4
213 |
214LL | fn want<T>(t: T) {}
215 | ^^^^ ----
8faf50e0
XL
216
217error[E0308]: mismatched types
0731742a 218 --> $DIR/type-mismatch.rs:34:22
8faf50e0 219 |
532ac7d7 220LL | 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
227note: function defined here
228 --> $DIR/type-mismatch.rs:14:4
229 |
230LL | fn want<T>(t: T) {}
231 | ^^^^ ----
8faf50e0
XL
232
233error[E0308]: mismatched types
0731742a 234 --> $DIR/type-mismatch.rs:35:25
8faf50e0 235 |
532ac7d7 236LL | 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
243note: function defined here
244 --> $DIR/type-mismatch.rs:14:4
245 |
246LL | fn want<T>(t: T) {}
247 | ^^^^ ----
8faf50e0
XL
248
249error[E0308]: mismatched types
0731742a 250 --> $DIR/type-mismatch.rs:39:19
8faf50e0 251 |
532ac7d7 252LL | 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
259note: function defined here
260 --> $DIR/type-mismatch.rs:14:4
261 |
262LL | fn want<T>(t: T) {}
263 | ^^^^ ----
8faf50e0
XL
264
265error[E0308]: mismatched types
0731742a 266 --> $DIR/type-mismatch.rs:40:17
8faf50e0 267 |
532ac7d7 268LL | 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
275note: function defined here
276 --> $DIR/type-mismatch.rs:14:4
277 |
278LL | fn want<T>(t: T) {}
279 | ^^^^ ----
8faf50e0
XL
280
281error[E0308]: mismatched types
0731742a 282 --> $DIR/type-mismatch.rs:41:17
8faf50e0 283 |
532ac7d7 284LL | 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
291note: function defined here
292 --> $DIR/type-mismatch.rs:14:4
293 |
294LL | fn want<T>(t: T) {}
295 | ^^^^ ----
8faf50e0
XL
296
297error[E0308]: mismatched types
0731742a 298 --> $DIR/type-mismatch.rs:42:24
8faf50e0 299 |
532ac7d7 300LL | 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
307note: function defined here
308 --> $DIR/type-mismatch.rs:14:4
309 |
310LL | fn want<T>(t: T) {}
311 | ^^^^ ----
8faf50e0
XL
312
313error[E0308]: mismatched types
0731742a 314 --> $DIR/type-mismatch.rs:43:27
8faf50e0 315 |
532ac7d7 316LL | 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
323note: function defined here
324 --> $DIR/type-mismatch.rs:14:4
325 |
326LL | fn want<T>(t: T) {}
327 | ^^^^ ----
8faf50e0
XL
328
329error[E0308]: mismatched types
0731742a 330 --> $DIR/type-mismatch.rs:44:25
8faf50e0 331 |
532ac7d7 332LL | 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
339note: function defined here
340 --> $DIR/type-mismatch.rs:14:4
341 |
342LL | fn want<T>(t: T) {}
343 | ^^^^ ----
8faf50e0
XL
344
345error[E0308]: mismatched types
0731742a 346 --> $DIR/type-mismatch.rs:45:22
8faf50e0 347 |
532ac7d7 348LL | 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
355note: function defined here
356 --> $DIR/type-mismatch.rs:14:4
357 |
358LL | fn want<T>(t: T) {}
359 | ^^^^ ----
8faf50e0
XL
360
361error[E0308]: mismatched types
0731742a 362 --> $DIR/type-mismatch.rs:46:25
8faf50e0 363 |
532ac7d7 364LL | 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
371note: function defined here
372 --> $DIR/type-mismatch.rs:14:4
373 |
374LL | fn want<T>(t: T) {}
375 | ^^^^ ----
8faf50e0
XL
376
377error[E0308]: mismatched types
0731742a 378 --> $DIR/type-mismatch.rs:47:23
8faf50e0 379 |
532ac7d7 380LL | 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
389note: function defined here
390 --> $DIR/type-mismatch.rs:14:4
391 |
392LL | fn want<T>(t: T) {}
393 | ^^^^ ----
8faf50e0
XL
394
395error[E0308]: mismatched types
0731742a 396 --> $DIR/type-mismatch.rs:48:26
8faf50e0 397 |
532ac7d7 398LL | 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
405note: function defined here
406 --> $DIR/type-mismatch.rs:14:4
407 |
408LL | fn want<T>(t: T) {}
409 | ^^^^ ----
8faf50e0
XL
410
411error[E0308]: mismatched types
0731742a 412 --> $DIR/type-mismatch.rs:52:19
8faf50e0 413 |
532ac7d7 414LL | 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
421note: function defined here
422 --> $DIR/type-mismatch.rs:14:4
423 |
424LL | fn want<T>(t: T) {}
425 | ^^^^ ----
8faf50e0
XL
426
427error[E0308]: mismatched types
0731742a 428 --> $DIR/type-mismatch.rs:53:17
8faf50e0 429 |
532ac7d7 430LL | 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
437note: function defined here
438 --> $DIR/type-mismatch.rs:14:4
439 |
440LL | fn want<T>(t: T) {}
441 | ^^^^ ----
8faf50e0
XL
442
443error[E0308]: mismatched types
0731742a 444 --> $DIR/type-mismatch.rs:54:17
8faf50e0 445 |
532ac7d7 446LL | 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
453note: function defined here
454 --> $DIR/type-mismatch.rs:14:4
455 |
456LL | fn want<T>(t: T) {}
457 | ^^^^ ----
8faf50e0
XL
458
459error[E0308]: mismatched types
0731742a 460 --> $DIR/type-mismatch.rs:55:24
8faf50e0 461 |
532ac7d7 462LL | 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
469note: function defined here
470 --> $DIR/type-mismatch.rs:14:4
471 |
472LL | fn want<T>(t: T) {}
473 | ^^^^ ----
8faf50e0
XL
474
475error[E0308]: mismatched types
0731742a 476 --> $DIR/type-mismatch.rs:56:27
8faf50e0 477 |
532ac7d7 478LL | 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
485note: function defined here
486 --> $DIR/type-mismatch.rs:14:4
487 |
488LL | fn want<T>(t: T) {}
489 | ^^^^ ----
8faf50e0
XL
490
491error[E0308]: mismatched types
0731742a 492 --> $DIR/type-mismatch.rs:57:22
8faf50e0 493 |
532ac7d7 494LL | 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
501note: function defined here
502 --> $DIR/type-mismatch.rs:14:4
503 |
504LL | fn want<T>(t: T) {}
505 | ^^^^ ----
8faf50e0
XL
506
507error[E0308]: mismatched types
0731742a 508 --> $DIR/type-mismatch.rs:58:22
8faf50e0 509 |
532ac7d7 510LL | 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
517note: function defined here
518 --> $DIR/type-mismatch.rs:14:4
519 |
520LL | fn want<T>(t: T) {}
521 | ^^^^ ----
8faf50e0
XL
522
523error[E0308]: mismatched types
0731742a 524 --> $DIR/type-mismatch.rs:59:25
8faf50e0 525 |
532ac7d7 526LL | 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
533note: function defined here
534 --> $DIR/type-mismatch.rs:14:4
535 |
536LL | fn want<T>(t: T) {}
537 | ^^^^ ----
8faf50e0
XL
538
539error[E0308]: mismatched types
0731742a 540 --> $DIR/type-mismatch.rs:60:23
8faf50e0 541 |
532ac7d7 542LL | 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
549note: function defined here
550 --> $DIR/type-mismatch.rs:14:4
551 |
552LL | fn want<T>(t: T) {}
553 | ^^^^ ----
8faf50e0
XL
554
555error[E0308]: mismatched types
0731742a 556 --> $DIR/type-mismatch.rs:61:26
8faf50e0 557 |
532ac7d7 558LL | 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
567note: function defined here
568 --> $DIR/type-mismatch.rs:14:4
569 |
570LL | fn want<T>(t: T) {}
571 | ^^^^ ----
8faf50e0
XL
572
573error[E0308]: mismatched types
0731742a 574 --> $DIR/type-mismatch.rs:65:19
8faf50e0 575 |
532ac7d7 576LL | 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
583note: function defined here
584 --> $DIR/type-mismatch.rs:14:4
585 |
586LL | fn want<T>(t: T) {}
587 | ^^^^ ----
8faf50e0
XL
588
589error[E0308]: mismatched types
0731742a 590 --> $DIR/type-mismatch.rs:66:17
8faf50e0 591 |
532ac7d7 592LL | 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
599note: function defined here
600 --> $DIR/type-mismatch.rs:14:4
601 |
602LL | fn want<T>(t: T) {}
603 | ^^^^ ----
8faf50e0
XL
604
605error[E0308]: mismatched types
0731742a 606 --> $DIR/type-mismatch.rs:67:17
8faf50e0 607 |
532ac7d7 608LL | 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
615note: function defined here
616 --> $DIR/type-mismatch.rs:14:4
617 |
618LL | fn want<T>(t: T) {}
619 | ^^^^ ----
8faf50e0
XL
620
621error[E0308]: mismatched types
0731742a 622 --> $DIR/type-mismatch.rs:68:24
8faf50e0 623 |
532ac7d7 624LL | 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
631note: function defined here
632 --> $DIR/type-mismatch.rs:14:4
633 |
634LL | fn want<T>(t: T) {}
635 | ^^^^ ----
8faf50e0
XL
636
637error[E0308]: mismatched types
0731742a 638 --> $DIR/type-mismatch.rs:69:27
8faf50e0 639 |
532ac7d7 640LL | 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
647note: function defined here
648 --> $DIR/type-mismatch.rs:14:4
649 |
650LL | fn want<T>(t: T) {}
651 | ^^^^ ----
8faf50e0
XL
652
653error[E0308]: mismatched types
0731742a 654 --> $DIR/type-mismatch.rs:70:22
8faf50e0 655 |
532ac7d7 656LL | 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
663note: function defined here
664 --> $DIR/type-mismatch.rs:14:4
665 |
666LL | fn want<T>(t: T) {}
667 | ^^^^ ----
8faf50e0
XL
668
669error[E0308]: mismatched types
0731742a 670 --> $DIR/type-mismatch.rs:71:25
8faf50e0 671 |
532ac7d7 672LL | 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
679note: function defined here
680 --> $DIR/type-mismatch.rs:14:4
681 |
682LL | fn want<T>(t: T) {}
683 | ^^^^ ----
8faf50e0
XL
684
685error[E0308]: mismatched types
0731742a 686 --> $DIR/type-mismatch.rs:72:22
8faf50e0 687 |
532ac7d7 688LL | 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
695note: function defined here
696 --> $DIR/type-mismatch.rs:14:4
697 |
698LL | fn want<T>(t: T) {}
699 | ^^^^ ----
8faf50e0
XL
700
701error[E0308]: mismatched types
0731742a 702 --> $DIR/type-mismatch.rs:73:25
8faf50e0 703 |
532ac7d7 704LL | 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
711note: function defined here
712 --> $DIR/type-mismatch.rs:14:4
713 |
714LL | fn want<T>(t: T) {}
715 | ^^^^ ----
8faf50e0
XL
716
717error[E0308]: mismatched types
0731742a 718 --> $DIR/type-mismatch.rs:74:23
8faf50e0 719 |
532ac7d7 720LL | 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
727note: function defined here
728 --> $DIR/type-mismatch.rs:14:4
729 |
730LL | fn want<T>(t: T) {}
731 | ^^^^ ----
8faf50e0
XL
732
733error[E0308]: mismatched types
0731742a 734 --> $DIR/type-mismatch.rs:75:26
8faf50e0 735 |
532ac7d7 736LL | 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
743note: function defined here
744 --> $DIR/type-mismatch.rs:14:4
745 |
746LL | fn want<T>(t: T) {}
747 | ^^^^ ----
8faf50e0
XL
748
749error: aborting due to 47 previous errors
750
751For more information about this error, try `rustc --explain E0308`.