diff options
| author | akida31 <akida3@protonmail.com> | 2022-10-11 17:02:56 +0200 |
|---|---|---|
| committer | akida31 <akida3@protonmail.com> | 2022-12-13 16:29:10 +0100 |
| commit | 7822822d51ecde145747c19a8cf57444666e9a3b (patch) | |
| tree | 1eee5fb24132f548fc52b3f011b4e4755425491f /compiler/rustc_trait_selection/src/traits | |
| parent | b1d74306579f310b33afd21c8a853afdc53d1fd2 (diff) | |
| download | rust-7822822d51ecde145747c19a8cf57444666e9a3b.tar.gz rust-7822822d51ecde145747c19a8cf57444666e9a3b.zip | |
change error message
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index f9a63841a70..f20cecdb74f 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -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, |
