diff options
| -rw-r--r-- | compiler/rustc_typeck/src/check/pat.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/mismatched_types/ref-pat-suggestions.fixed | 2 | ||||
| -rw-r--r-- | src/test/ui/mismatched_types/ref-pat-suggestions.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_typeck/src/check/pat.rs b/compiler/rustc_typeck/src/check/pat.rs index 2fadf9c8938..59d8776ca23 100644 --- a/compiler/rustc_typeck/src/check/pat.rs +++ b/compiler/rustc_typeck/src/check/pat.rs @@ -668,7 +668,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { // so we don't suggest moving something to the type that does not exist hir::Node::Param(hir::Param { ty_span, .. }) if binding.span != *ty_span => { err.multipart_suggestion_verbose( - format!("to take parameter `{binding}` by reference, move `&{mutability}` to the type"), + format!("to take parameter `{binding}` by reference, move `&{mutability}` to the type"), vec