Fix unquoted projection types in label
This commit is contained in:
parent
d86835769c
commit
449dfc64f0
@ -195,7 +195,7 @@ fn report_maybe_different(expected: &str, found: &str) -> String {
|
||||
)
|
||||
.into(),
|
||||
ProjectionMismatched(ref values) => format!(
|
||||
"expected {}, found {}",
|
||||
"expected `{}`, found `{}`",
|
||||
tcx.def_path_str(values.expected),
|
||||
tcx.def_path_str(values.found)
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ LL | fn floatify_sibling<C>(ints: &C) -> <C as Collection<i32>>::Sibling<f32>
|
||||
| ------------------------------------ expected `<C as Collection<i32>>::Sibling<f32>` because of return type
|
||||
...
|
||||
LL | res
|
||||
| ^^^ expected Collection::Sibling, found CollectionFamily::Member
|
||||
| ^^^ expected `Collection::Sibling`, found `CollectionFamily::Member`
|
||||
|
|
||||
= note: expected associated type `<C as Collection<i32>>::Sibling<f32>`
|
||||
found associated type `<<C as Collection<i32>>::Family as CollectionFamily>::Member<f32>`
|
||||
|
Loading…
Reference in New Issue
Block a user