You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/generic-associated-types/collections-project-default.stderr
-3
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,6 @@ error[E0308]: mismatched types
4
4
LL | fn floatify_sibling<C>(ints: &C) -> <C as Collection<i32>>::Sibling<f32>
5
5
| ------------------------------------ expected `<C as Collection<i32>>::Sibling<f32>` because of return type
6
6
...
7
-
LL | let mut res = <C::Family as CollectionFamily>::Member::<f32>::empty();
8
-
| ------------------------------------------------------- here the type of `res` is inferred to be `<<C as Collection<i32>>::Family as CollectionFamily>::Member<f32>`
9
-
...
10
7
LL | res
11
8
| ^^^ expected Collection::Sibling, found CollectionFamily::Member
0 commit comments