1 error[E0308]: mismatched types
2 --> $DIR/type-mismatch.rs:17:17
5 | ^ expected struct `foo`, found `usize`
7 error[E0308]: mismatched types
8 --> $DIR/type-mismatch.rs:18:17
11 | ^ expected struct `bar`, found `usize`
13 error[E0308]: mismatched types
14 --> $DIR/type-mismatch.rs:19:24
16 LL | want::<Foo<usize>>(f);
17 | ^ expected struct `Foo`, found `usize`
19 = note: expected struct `Foo<usize>`
22 error[E0308]: mismatched types
23 --> $DIR/type-mismatch.rs:20:27
25 LL | want::<Foo<usize, B>>(f);
26 | ^ expected struct `Foo`, found `usize`
28 = note: expected struct `Foo<usize, B>`
31 error[E0308]: mismatched types
32 --> $DIR/type-mismatch.rs:21:22
34 LL | want::<Foo<foo>>(f);
35 | ^ expected struct `Foo`, found `usize`
37 = note: expected struct `Foo<foo>`
40 error[E0308]: mismatched types
41 --> $DIR/type-mismatch.rs:22:25
43 LL | want::<Foo<foo, B>>(f);
44 | ^ expected struct `Foo`, found `usize`
46 = note: expected struct `Foo<foo, B>`
49 error[E0308]: mismatched types
50 --> $DIR/type-mismatch.rs:23:22
52 LL | want::<Foo<bar>>(f);
53 | ^ expected struct `Foo`, found `usize`
55 = note: expected struct `Foo<bar>`
58 error[E0308]: mismatched types
59 --> $DIR/type-mismatch.rs:24:25
61 LL | want::<Foo<bar, B>>(f);
62 | ^ expected struct `Foo`, found `usize`
64 = note: expected struct `Foo<bar, B>`
67 error[E0308]: mismatched types
68 --> $DIR/type-mismatch.rs:28:19
70 LL | want::<usize>(f);
71 | ^ expected `usize`, found struct `foo`
73 error[E0308]: mismatched types
74 --> $DIR/type-mismatch.rs:29:17
77 | ^ expected struct `bar`, found struct `foo`
79 error[E0308]: mismatched types
80 --> $DIR/type-mismatch.rs:30:24
82 LL | want::<Foo<usize>>(f);
83 | ^ expected struct `Foo`, found struct `foo`
85 = note: expected struct `Foo<usize>`
88 error[E0308]: mismatched types
89 --> $DIR/type-mismatch.rs:31:27
91 LL | want::<Foo<usize, B>>(f);
92 | ^ expected struct `Foo`, found struct `foo`
94 = note: expected struct `Foo<usize, B>`
97 error[E0308]: mismatched types
98 --> $DIR/type-mismatch.rs:32:22
100 LL | want::<Foo<foo>>(f);
101 | ^ expected struct `Foo`, found struct `foo`
103 = note: expected struct `Foo<foo>`
106 error[E0308]: mismatched types
107 --> $DIR/type-mismatch.rs:33:25
109 LL | want::<Foo<foo, B>>(f);
110 | ^ expected struct `Foo`, found struct `foo`
112 = note: expected struct `Foo<foo, B>`
115 error[E0308]: mismatched types
116 --> $DIR/type-mismatch.rs:34:22
118 LL | want::<Foo<bar>>(f);
119 | ^ expected struct `Foo`, found struct `foo`
121 = note: expected struct `Foo<bar>`
124 error[E0308]: mismatched types
125 --> $DIR/type-mismatch.rs:35:25
127 LL | want::<Foo<bar, B>>(f);
128 | ^ expected struct `Foo`, found struct `foo`
130 = note: expected struct `Foo<bar, B>`
133 error[E0308]: mismatched types
134 --> $DIR/type-mismatch.rs:39:19
136 LL | want::<usize>(f);
137 | ^ expected `usize`, found struct `Foo`
139 = note: expected type `usize`
140 found struct `Foo<foo>`
142 error[E0308]: mismatched types
143 --> $DIR/type-mismatch.rs:40:17
146 | ^ expected struct `foo`, found struct `Foo`
148 = note: expected struct `foo`
149 found struct `Foo<foo>`
151 error[E0308]: mismatched types
152 --> $DIR/type-mismatch.rs:41:17
155 | ^ expected struct `bar`, found struct `Foo`
157 = note: expected struct `bar`
158 found struct `Foo<foo>`
160 error[E0308]: mismatched types
161 --> $DIR/type-mismatch.rs:42:24
163 LL | want::<Foo<usize>>(f);
164 | ^ expected `usize`, found struct `foo`
166 = note: expected struct `Foo<usize>`
167 found struct `Foo<foo>`
169 error[E0308]: mismatched types
170 --> $DIR/type-mismatch.rs:43:27
172 LL | want::<Foo<usize, B>>(f);
173 | ^ expected `usize`, found struct `foo`
175 = note: expected struct `Foo<usize, B>`
176 found struct `Foo<foo, A>`
178 error[E0308]: mismatched types
179 --> $DIR/type-mismatch.rs:44:25
181 LL | want::<Foo<foo, B>>(f);
182 | ^ expected struct `B`, found struct `A`
184 = note: expected struct `Foo<_, B>`
185 found struct `Foo<_, A>`
187 error[E0308]: mismatched types
188 --> $DIR/type-mismatch.rs:45:22
190 LL | want::<Foo<bar>>(f);
191 | ^ expected struct `bar`, found struct `foo`
193 = note: expected struct `Foo<bar>`
194 found struct `Foo<foo>`
196 error[E0308]: mismatched types
197 --> $DIR/type-mismatch.rs:46:25
199 LL | want::<Foo<bar, B>>(f);
200 | ^ expected struct `bar`, found struct `foo`
202 = note: expected struct `Foo<bar, B>`
203 found struct `Foo<foo, A>`
205 error[E0308]: mismatched types
206 --> $DIR/type-mismatch.rs:47:23
208 LL | want::<&Foo<foo>>(f);
211 | expected `&Foo<foo>`, found struct `Foo`
212 | help: consider borrowing here: `&f`
214 = note: expected reference `&Foo<foo>`
215 found struct `Foo<foo>`
217 error[E0308]: mismatched types
218 --> $DIR/type-mismatch.rs:48:26
220 LL | want::<&Foo<foo, B>>(f);
221 | ^ expected `&Foo<foo, B>`, found struct `Foo`
223 = note: expected reference `&Foo<foo, B>`
224 found struct `Foo<foo>`
226 error[E0308]: mismatched types
227 --> $DIR/type-mismatch.rs:52:19
229 LL | want::<usize>(f);
230 | ^ expected `usize`, found struct `Foo`
232 = note: expected type `usize`
233 found struct `Foo<foo, B>`
235 error[E0308]: mismatched types
236 --> $DIR/type-mismatch.rs:53:17
239 | ^ expected struct `foo`, found struct `Foo`
241 = note: expected struct `foo`
242 found struct `Foo<foo, B>`
244 error[E0308]: mismatched types
245 --> $DIR/type-mismatch.rs:54:17
248 | ^ expected struct `bar`, found struct `Foo`
250 = note: expected struct `bar`
251 found struct `Foo<foo, B>`
253 error[E0308]: mismatched types
254 --> $DIR/type-mismatch.rs:55:24
256 LL | want::<Foo<usize>>(f);
257 | ^ expected `usize`, found struct `foo`
259 = note: expected struct `Foo<usize, A>`
260 found struct `Foo<foo, B>`
262 error[E0308]: mismatched types
263 --> $DIR/type-mismatch.rs:56:27
265 LL | want::<Foo<usize, B>>(f);
266 | ^ expected `usize`, found struct `foo`
268 = note: expected struct `Foo<usize, _>`
269 found struct `Foo<foo, _>`
271 error[E0308]: mismatched types
272 --> $DIR/type-mismatch.rs:57:22
274 LL | want::<Foo<foo>>(f);
275 | ^ expected struct `A`, found struct `B`
277 = note: expected struct `Foo<_, A>`
278 found struct `Foo<_, B>`
280 error[E0308]: mismatched types
281 --> $DIR/type-mismatch.rs:58:22
283 LL | want::<Foo<bar>>(f);
284 | ^ expected struct `bar`, found struct `foo`
286 = note: expected struct `Foo<bar, A>`
287 found struct `Foo<foo, B>`
289 error[E0308]: mismatched types
290 --> $DIR/type-mismatch.rs:59:25
292 LL | want::<Foo<bar, B>>(f);
293 | ^ expected struct `bar`, found struct `foo`
295 = note: expected struct `Foo<bar, _>`
296 found struct `Foo<foo, _>`
298 error[E0308]: mismatched types
299 --> $DIR/type-mismatch.rs:60:23
301 LL | want::<&Foo<foo>>(f);
302 | ^ expected `&Foo<foo>`, found struct `Foo`
304 = note: expected reference `&Foo<foo>`
305 found struct `Foo<foo, B>`
307 error[E0308]: mismatched types
308 --> $DIR/type-mismatch.rs:61:26
310 LL | want::<&Foo<foo, B>>(f);
313 | expected `&Foo<foo, B>`, found struct `Foo`
314 | help: consider borrowing here: `&f`
316 = note: expected reference `&Foo<foo, B>`
317 found struct `Foo<foo, B>`
319 error[E0308]: mismatched types
320 --> $DIR/type-mismatch.rs:65:19
322 LL | want::<usize>(f);
323 | ^ expected `usize`, found struct `Foo`
325 = note: expected type `usize`
326 found struct `Foo<foo, B, A>`
328 error[E0308]: mismatched types
329 --> $DIR/type-mismatch.rs:66:17
332 | ^ expected struct `foo`, found struct `Foo`
334 = note: expected struct `foo`
335 found struct `Foo<foo, B, A>`
337 error[E0308]: mismatched types
338 --> $DIR/type-mismatch.rs:67:17
341 | ^ expected struct `bar`, found struct `Foo`
343 = note: expected struct `bar`
344 found struct `Foo<foo, B, A>`
346 error[E0308]: mismatched types
347 --> $DIR/type-mismatch.rs:68:24
349 LL | want::<Foo<usize>>(f);
350 | ^ expected `usize`, found struct `foo`
352 = note: expected struct `Foo<usize, A, B>`
353 found struct `Foo<foo, B, A>`
355 error[E0308]: mismatched types
356 --> $DIR/type-mismatch.rs:69:27
358 LL | want::<Foo<usize, B>>(f);
359 | ^ expected `usize`, found struct `foo`
361 = note: expected struct `Foo<usize, _, B>`
362 found struct `Foo<foo, _, A>`
364 error[E0308]: mismatched types
365 --> $DIR/type-mismatch.rs:70:22
367 LL | want::<Foo<foo>>(f);
368 | ^ expected struct `A`, found struct `B`
370 = note: expected struct `Foo<_, A, B>`
371 found struct `Foo<_, B, A>`
373 error[E0308]: mismatched types
374 --> $DIR/type-mismatch.rs:71:25
376 LL | want::<Foo<foo, B>>(f);
377 | ^ expected struct `B`, found struct `A`
379 = note: expected struct `Foo<_, _, B>`
380 found struct `Foo<_, _, A>`
382 error[E0308]: mismatched types
383 --> $DIR/type-mismatch.rs:72:22
385 LL | want::<Foo<bar>>(f);
386 | ^ expected struct `bar`, found struct `foo`
388 = note: expected struct `Foo<bar, A, B>`
389 found struct `Foo<foo, B, A>`
391 error[E0308]: mismatched types
392 --> $DIR/type-mismatch.rs:73:25
394 LL | want::<Foo<bar, B>>(f);
395 | ^ expected struct `bar`, found struct `foo`
397 = note: expected struct `Foo<bar, _, B>`
398 found struct `Foo<foo, _, A>`
400 error[E0308]: mismatched types
401 --> $DIR/type-mismatch.rs:74:23
403 LL | want::<&Foo<foo>>(f);
404 | ^ expected `&Foo<foo>`, found struct `Foo`
406 = note: expected reference `&Foo<foo>`
407 found struct `Foo<foo, B, A>`
409 error[E0308]: mismatched types
410 --> $DIR/type-mismatch.rs:75:26
412 LL | want::<&Foo<foo, B>>(f);
413 | ^ expected `&Foo<foo, B>`, found struct `Foo`
415 = note: expected reference `&Foo<foo, B>`
416 found struct `Foo<foo, B, A>`
418 error: aborting due to 47 previous errors
420 For more information about this error, try `rustc --explain E0308`.