]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-mismatch.stderr
2d9481e5a4102c00b8e8409c31110f9eb46873af
[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    = note: expected struct `foo`
8                 found type `usize`
9
10 error[E0308]: mismatched types
11   --> $DIR/type-mismatch.rs:18:17
12    |
13 LL |     want::<bar>(f);
14    |                 ^ expected struct `bar`, found usize
15    |
16    = note: expected struct `bar`
17                 found type `usize`
18
19 error[E0308]: mismatched types
20   --> $DIR/type-mismatch.rs:19:24
21    |
22 LL |     want::<Foo<usize>>(f);
23    |                        ^ expected struct `Foo`, found usize
24    |
25    = note: expected struct `Foo<usize>`
26                 found type `usize`
27
28 error[E0308]: mismatched types
29   --> $DIR/type-mismatch.rs:20:27
30    |
31 LL |     want::<Foo<usize, B>>(f);
32    |                           ^ expected struct `Foo`, found usize
33    |
34    = note: expected struct `Foo<usize, B>`
35                 found type `usize`
36
37 error[E0308]: mismatched types
38   --> $DIR/type-mismatch.rs:21:22
39    |
40 LL |     want::<Foo<foo>>(f);
41    |                      ^ expected struct `Foo`, found usize
42    |
43    = note: expected struct `Foo<foo>`
44                 found type `usize`
45
46 error[E0308]: mismatched types
47   --> $DIR/type-mismatch.rs:22:25
48    |
49 LL |     want::<Foo<foo, B>>(f);
50    |                         ^ expected struct `Foo`, found usize
51    |
52    = note: expected struct `Foo<foo, B>`
53                 found type `usize`
54
55 error[E0308]: mismatched types
56   --> $DIR/type-mismatch.rs:23:22
57    |
58 LL |     want::<Foo<bar>>(f);
59    |                      ^ expected struct `Foo`, found usize
60    |
61    = note: expected struct `Foo<bar>`
62                 found type `usize`
63
64 error[E0308]: mismatched types
65   --> $DIR/type-mismatch.rs:24:25
66    |
67 LL |     want::<Foo<bar, B>>(f);
68    |                         ^ expected struct `Foo`, found usize
69    |
70    = note: expected struct `Foo<bar, B>`
71                 found type `usize`
72
73 error[E0308]: mismatched types
74   --> $DIR/type-mismatch.rs:28:19
75    |
76 LL |     want::<usize>(f);
77    |                   ^ expected usize, found struct `foo`
78    |
79    = note: expected type `usize`
80             found struct `foo`
81
82 error[E0308]: mismatched types
83   --> $DIR/type-mismatch.rs:29:17
84    |
85 LL |     want::<bar>(f);
86    |                 ^ expected struct `bar`, found struct `foo`
87    |
88    = note: expected struct `bar`
89               found struct `foo`
90
91 error[E0308]: mismatched types
92   --> $DIR/type-mismatch.rs:30:24
93    |
94 LL |     want::<Foo<usize>>(f);
95    |                        ^ expected struct `Foo`, found struct `foo`
96    |
97    = note: expected struct `Foo<usize>`
98               found struct `foo`
99
100 error[E0308]: mismatched types
101   --> $DIR/type-mismatch.rs:31:27
102    |
103 LL |     want::<Foo<usize, B>>(f);
104    |                           ^ expected struct `Foo`, found struct `foo`
105    |
106    = note: expected struct `Foo<usize, B>`
107               found struct `foo`
108
109 error[E0308]: mismatched types
110   --> $DIR/type-mismatch.rs:32:22
111    |
112 LL |     want::<Foo<foo>>(f);
113    |                      ^ expected struct `Foo`, found struct `foo`
114    |
115    = note: expected struct `Foo<foo>`
116               found struct `foo`
117
118 error[E0308]: mismatched types
119   --> $DIR/type-mismatch.rs:33:25
120    |
121 LL |     want::<Foo<foo, B>>(f);
122    |                         ^ expected struct `Foo`, found struct `foo`
123    |
124    = note: expected struct `Foo<foo, B>`
125               found struct `foo`
126
127 error[E0308]: mismatched types
128   --> $DIR/type-mismatch.rs:34:22
129    |
130 LL |     want::<Foo<bar>>(f);
131    |                      ^ expected struct `Foo`, found struct `foo`
132    |
133    = note: expected struct `Foo<bar>`
134               found struct `foo`
135
136 error[E0308]: mismatched types
137   --> $DIR/type-mismatch.rs:35:25
138    |
139 LL |     want::<Foo<bar, B>>(f);
140    |                         ^ expected struct `Foo`, found struct `foo`
141    |
142    = note: expected struct `Foo<bar, B>`
143               found struct `foo`
144
145 error[E0308]: mismatched types
146   --> $DIR/type-mismatch.rs:39:19
147    |
148 LL |     want::<usize>(f);
149    |                   ^ expected usize, found struct `Foo`
150    |
151    = note: expected type `usize`
152             found struct `Foo<foo>`
153
154 error[E0308]: mismatched types
155   --> $DIR/type-mismatch.rs:40:17
156    |
157 LL |     want::<foo>(f);
158    |                 ^ expected struct `foo`, found struct `Foo`
159    |
160    = note: expected struct `foo`
161               found struct `Foo<foo>`
162
163 error[E0308]: mismatched types
164   --> $DIR/type-mismatch.rs:41:17
165    |
166 LL |     want::<bar>(f);
167    |                 ^ expected struct `bar`, found struct `Foo`
168    |
169    = note: expected struct `bar`
170               found struct `Foo<foo>`
171
172 error[E0308]: mismatched types
173   --> $DIR/type-mismatch.rs:42:24
174    |
175 LL |     want::<Foo<usize>>(f);
176    |                        ^ expected usize, found struct `foo`
177    |
178    = note: expected struct `Foo<usize>`
179               found struct `Foo<foo>`
180
181 error[E0308]: mismatched types
182   --> $DIR/type-mismatch.rs:43:27
183    |
184 LL |     want::<Foo<usize, B>>(f);
185    |                           ^ expected usize, found struct `foo`
186    |
187    = note: expected struct `Foo<usize, B>`
188               found struct `Foo<foo, A>`
189
190 error[E0308]: mismatched types
191   --> $DIR/type-mismatch.rs:44:25
192    |
193 LL |     want::<Foo<foo, B>>(f);
194    |                         ^ expected struct `B`, found struct `A`
195    |
196    = note: expected struct `Foo<_, B>`
197               found struct `Foo<_, A>`
198
199 error[E0308]: mismatched types
200   --> $DIR/type-mismatch.rs:45:22
201    |
202 LL |     want::<Foo<bar>>(f);
203    |                      ^ expected struct `bar`, found struct `foo`
204    |
205    = note: expected struct `Foo<bar>`
206               found struct `Foo<foo>`
207
208 error[E0308]: mismatched types
209   --> $DIR/type-mismatch.rs:46:25
210    |
211 LL |     want::<Foo<bar, B>>(f);
212    |                         ^ expected struct `bar`, found struct `foo`
213    |
214    = note: expected struct `Foo<bar, B>`
215               found struct `Foo<foo, A>`
216
217 error[E0308]: mismatched types
218   --> $DIR/type-mismatch.rs:47:23
219    |
220 LL |     want::<&Foo<foo>>(f);
221    |                       ^
222    |                       |
223    |                       expected &Foo<foo>, found struct `Foo`
224    |                       help: consider borrowing here: `&f`
225    |
226    = note: expected reference `&Foo<foo>`
227                  found struct `Foo<foo>`
228
229 error[E0308]: mismatched types
230   --> $DIR/type-mismatch.rs:48:26
231    |
232 LL |     want::<&Foo<foo, B>>(f);
233    |                          ^ expected reference, found struct `Foo`
234    |
235    = note: expected reference `&Foo<foo, B>`
236                  found struct `Foo<foo>`
237
238 error[E0308]: mismatched types
239   --> $DIR/type-mismatch.rs:52:19
240    |
241 LL |     want::<usize>(f);
242    |                   ^ expected usize, found struct `Foo`
243    |
244    = note: expected type `usize`
245             found struct `Foo<foo, B>`
246
247 error[E0308]: mismatched types
248   --> $DIR/type-mismatch.rs:53:17
249    |
250 LL |     want::<foo>(f);
251    |                 ^ expected struct `foo`, found struct `Foo`
252    |
253    = note: expected struct `foo`
254               found struct `Foo<foo, B>`
255
256 error[E0308]: mismatched types
257   --> $DIR/type-mismatch.rs:54:17
258    |
259 LL |     want::<bar>(f);
260    |                 ^ expected struct `bar`, found struct `Foo`
261    |
262    = note: expected struct `bar`
263               found struct `Foo<foo, B>`
264
265 error[E0308]: mismatched types
266   --> $DIR/type-mismatch.rs:55:24
267    |
268 LL |     want::<Foo<usize>>(f);
269    |                        ^ expected usize, found struct `foo`
270    |
271    = note: expected struct `Foo<usize, A>`
272               found struct `Foo<foo, B>`
273
274 error[E0308]: mismatched types
275   --> $DIR/type-mismatch.rs:56:27
276    |
277 LL |     want::<Foo<usize, B>>(f);
278    |                           ^ expected usize, found struct `foo`
279    |
280    = note: expected struct `Foo<usize, _>`
281               found struct `Foo<foo, _>`
282
283 error[E0308]: mismatched types
284   --> $DIR/type-mismatch.rs:57:22
285    |
286 LL |     want::<Foo<foo>>(f);
287    |                      ^ expected struct `A`, found struct `B`
288    |
289    = note: expected struct `Foo<_, A>`
290               found struct `Foo<_, B>`
291
292 error[E0308]: mismatched types
293   --> $DIR/type-mismatch.rs:58:22
294    |
295 LL |     want::<Foo<bar>>(f);
296    |                      ^ expected struct `bar`, found struct `foo`
297    |
298    = note: expected struct `Foo<bar, A>`
299               found struct `Foo<foo, B>`
300
301 error[E0308]: mismatched types
302   --> $DIR/type-mismatch.rs:59:25
303    |
304 LL |     want::<Foo<bar, B>>(f);
305    |                         ^ expected struct `bar`, found struct `foo`
306    |
307    = note: expected struct `Foo<bar, _>`
308               found struct `Foo<foo, _>`
309
310 error[E0308]: mismatched types
311   --> $DIR/type-mismatch.rs:60:23
312    |
313 LL |     want::<&Foo<foo>>(f);
314    |                       ^ expected &Foo<foo>, found struct `Foo`
315    |
316    = note: expected reference `&Foo<foo>`
317                  found struct `Foo<foo, B>`
318
319 error[E0308]: mismatched types
320   --> $DIR/type-mismatch.rs:61:26
321    |
322 LL |     want::<&Foo<foo, B>>(f);
323    |                          ^
324    |                          |
325    |                          expected reference, found struct `Foo`
326    |                          help: consider borrowing here: `&f`
327    |
328    = note: expected reference `&Foo<foo, B>`
329                  found struct `Foo<foo, B>`
330
331 error[E0308]: mismatched types
332   --> $DIR/type-mismatch.rs:65:19
333    |
334 LL |     want::<usize>(f);
335    |                   ^ expected usize, found struct `Foo`
336    |
337    = note: expected type `usize`
338             found struct `Foo<foo, B, A>`
339
340 error[E0308]: mismatched types
341   --> $DIR/type-mismatch.rs:66:17
342    |
343 LL |     want::<foo>(f);
344    |                 ^ expected struct `foo`, found struct `Foo`
345    |
346    = note: expected struct `foo`
347               found struct `Foo<foo, B, A>`
348
349 error[E0308]: mismatched types
350   --> $DIR/type-mismatch.rs:67:17
351    |
352 LL |     want::<bar>(f);
353    |                 ^ expected struct `bar`, found struct `Foo`
354    |
355    = note: expected struct `bar`
356               found struct `Foo<foo, B, A>`
357
358 error[E0308]: mismatched types
359   --> $DIR/type-mismatch.rs:68:24
360    |
361 LL |     want::<Foo<usize>>(f);
362    |                        ^ expected usize, found struct `foo`
363    |
364    = note: expected struct `Foo<usize, A, B>`
365               found struct `Foo<foo, B, A>`
366
367 error[E0308]: mismatched types
368   --> $DIR/type-mismatch.rs:69:27
369    |
370 LL |     want::<Foo<usize, B>>(f);
371    |                           ^ expected usize, found struct `foo`
372    |
373    = note: expected struct `Foo<usize, _, B>`
374               found struct `Foo<foo, _, A>`
375
376 error[E0308]: mismatched types
377   --> $DIR/type-mismatch.rs:70:22
378    |
379 LL |     want::<Foo<foo>>(f);
380    |                      ^ expected struct `A`, found struct `B`
381    |
382    = note: expected struct `Foo<_, A, B>`
383               found struct `Foo<_, B, A>`
384
385 error[E0308]: mismatched types
386   --> $DIR/type-mismatch.rs:71:25
387    |
388 LL |     want::<Foo<foo, B>>(f);
389    |                         ^ expected struct `B`, found struct `A`
390    |
391    = note: expected struct `Foo<_, _, B>`
392               found struct `Foo<_, _, A>`
393
394 error[E0308]: mismatched types
395   --> $DIR/type-mismatch.rs:72:22
396    |
397 LL |     want::<Foo<bar>>(f);
398    |                      ^ expected struct `bar`, found struct `foo`
399    |
400    = note: expected struct `Foo<bar, A, B>`
401               found struct `Foo<foo, B, A>`
402
403 error[E0308]: mismatched types
404   --> $DIR/type-mismatch.rs:73:25
405    |
406 LL |     want::<Foo<bar, B>>(f);
407    |                         ^ expected struct `bar`, found struct `foo`
408    |
409    = note: expected struct `Foo<bar, _, B>`
410               found struct `Foo<foo, _, A>`
411
412 error[E0308]: mismatched types
413   --> $DIR/type-mismatch.rs:74:23
414    |
415 LL |     want::<&Foo<foo>>(f);
416    |                       ^ expected &Foo<foo>, found struct `Foo`
417    |
418    = note: expected reference `&Foo<foo>`
419                  found struct `Foo<foo, B, A>`
420
421 error[E0308]: mismatched types
422   --> $DIR/type-mismatch.rs:75:26
423    |
424 LL |     want::<&Foo<foo, B>>(f);
425    |                          ^ expected reference, found struct `Foo`
426    |
427    = note: expected reference `&Foo<foo, B>`
428                  found struct `Foo<foo, B, A>`
429
430 error: aborting due to 47 previous errors
431
432 For more information about this error, try `rustc --explain E0308`.