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