Make structured suggestion for fn casting verbose
This commit is contained in:
parent
6c2c8edac3
commit
d86835769c
5 changed files with 36 additions and 25 deletions
|
@ -404,7 +404,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
(msg, sug)
|
||||
}
|
||||
};
|
||||
diag.span_suggestion(span, msg, sug, Applicability::MaybeIncorrect);
|
||||
diag.span_suggestion_verbose(span, msg, sug, Applicability::MaybeIncorrect);
|
||||
}
|
||||
(ty::FnDef(did1, substs1), ty::FnDef(did2, substs2)) => {
|
||||
let expected_sig =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue