Fix typo in error message for invalid casting
Corrected the spelling of "defererence" to "dereference" in the error message that informs users about invalid casting requirements.
This commit is contained in:
parent
648a00936b
commit
ec6e0983b8
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ pub(crate) fn invalid_cast(ctx: &DiagnosticsContext<'_>, d: &hir::InvalidCast) -
|
|||
DiagnosticCode::RustcHardError("E0606"),
|
||||
format_ty!(
|
||||
ctx,
|
||||
"casting `{}` as `{}` is invalid: needs defererence or removal of unneeded borrow",
|
||||
"casting `{}` as `{}` is invalid: needs dereference or removal of unneeded borrow",
|
||||
d.expr_ty,
|
||||
d.cast_ty
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue