Fix unquoted projection types in label

This commit is contained in:
Esteban Küber 2023-01-30 22:02:30 +00:00
parent d86835769c
commit 449dfc64f0
2 changed files with 2 additions and 2 deletions

View File

@ -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)
)

View File

@ -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>`