about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Wolff <fabian.wolff@alumni.ethz.ch>2021-07-01 13:26:17 +0200
committerFabian Wolff <fabian.wolff@alumni.ethz.ch>2021-07-01 13:26:17 +0200
commitdab25ab56cd7a8132281621ecdf7aee8dfdabd15 (patch)
treeb781f6b08af20063fbc82b28a48e2c473e12e78c
parent6ed16e23b1bd6a294508e2597914977b767c568c (diff)
downloadrust-dab25ab56cd7a8132281621ecdf7aee8dfdabd15.tar.gz
rust-dab25ab56cd7a8132281621ecdf7aee8dfdabd15.zip
Reword error message slightly
-rw-r--r--compiler/rustc_typeck/src/check/callee.rs2
-rw-r--r--src/test/ui/lang-items/issue-86238.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_typeck/src/check/callee.rs b/compiler/rustc_typeck/src/check/callee.rs
index 9362daa3c88..f55093d82f8 100644
--- a/compiler/rustc_typeck/src/check/callee.rs
+++ b/compiler/rustc_typeck/src/check/callee.rs
@@ -596,7 +596,7 @@ impl<'a, 'tcx> DeferredCallResolution<'tcx> {
                 );
                 err.help(
                     "make sure the `fn`/`fn_mut`/`fn_once` lang items are defined \
-                     and have an associated `call`/`call_mut`/`call_once` function",
+                     and have associated `call`/`call_mut`/`call_once` functions",
                 );
                 err.emit();
             }
diff --git a/src/test/ui/lang-items/issue-86238.stderr b/src/test/ui/lang-items/issue-86238.stderr
index 070f2762634..767e6de2263 100644
--- a/src/test/ui/lang-items/issue-86238.stderr
+++ b/src/test/ui/lang-items/issue-86238.stderr
@@ -4,7 +4,7 @@ error: failed to find an overloaded call trait for closure call
 LL |     one()
    |     ^^^^^
    |
-   = help: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined and have an associated `call`/`call_mut`/`call_once` function
+   = help: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined and have associated `call`/`call_mut`/`call_once` functions
 
 error: aborting due to previous error