1
Fork 0

change error message

This commit is contained in:
akida31 2022-10-11 17:02:56 +02:00
parent b1d7430657
commit 7822822d51
No known key found for this signature in database
GPG key ID: 02E1AF2C3D9FB7C9
5 changed files with 26 additions and 22 deletions

View file

@ -3449,11 +3449,11 @@ fn hint_missing_borrow<'tcx>(
if found_ty == expected_ty {
let hint = if found_refs < expected_refs {
"consider borrowing here:"
"consider borrowing the argument"
} else if found_refs == expected_refs {
continue;
} else {
"consider removing the borrow:"
"do not borrow the argument"
};
err.span_suggestion_verbose(
arg_span,