1
Fork 0

Improve wording of suggestion about accessing field

This commit is contained in:
Hirochika Matsumoto 2021-02-02 15:14:24 +09:00
parent 461cbe42d0
commit bad0f288d3
4 changed files with 13 additions and 13 deletions

View file

@ -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,