]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/collections-project-default.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / collections-project-default.stderr
1 error[E0308]: mismatched types
2   --> $DIR/collections-project-default.rs:59:5
3    |
4 LL | fn floatify_sibling<C>(ints: &C) -> <C as Collection<i32>>::Sibling<f32>
5    |                                     ------------------------------------ expected `<C as Collection<i32>>::Sibling<f32>` because of return type
6 ...
7 LL |     res
8    |     ^^^ expected Collection::Sibling, found CollectionFamily::Member
9    |
10    = note: expected associated type `<C as Collection<i32>>::Sibling<f32>`
11               found associated type `<<C as Collection<i32>>::Family as CollectionFamily>::Member<f32>`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.