Improve wording of suggestion about accessing field
This commit is contained in:
parent
461cbe42d0
commit
bad0f288d3
4 changed files with 13 additions and 13 deletions
|
@ -1855,7 +1855,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
diag.span_suggestion(
|
||||
span,
|
||||
&format!(
|
||||
"you might have meant to use field `{}` of type `{}`",
|
||||
"you might have meant to use field `{}` whose type is `{}`",
|
||||
name, ty
|
||||
),
|
||||
suggestion,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue