Make suggestion verbose and tweak error message
This commit is contained in:
parent
8e344ae127
commit
7601adb4a0
10 changed files with 178 additions and 119 deletions
|
@ -467,9 +467,9 @@ fn infer_placeholder_type<'tcx>(
|
|||
|
||||
if !ty.references_error() {
|
||||
if let Some(ty) = ty.make_suggestable(tcx, false, None) {
|
||||
diag.span_suggestion(
|
||||
diag.span_suggestion_verbose(
|
||||
span,
|
||||
"replace with the correct type",
|
||||
"replace this with a fully-specified type",
|
||||
ty,
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue