Spell out other trait diagnostic
This commit is contained in:
parent
02c7a5921e
commit
d0112c6849
42 changed files with 348 additions and 348 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue