1
Fork 0

Spell out other trait diagnostic

This commit is contained in:
Alex Macleod 2024-06-07 14:54:42 +00:00
parent 02c7a5921e
commit d0112c6849
42 changed files with 348 additions and 348 deletions

View file

@ -2064,7 +2064,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
if all_traits_equal {
format!("\n {}", c.self_ty())
} else {
format!("\n {c}")
format!("\n `{}` implements `{}`", c.self_ty(), c.print_only_trait_path())
}
})
.collect();