From dab25ab56cd7a8132281621ecdf7aee8dfdabd15 Mon Sep 17 00:00:00 2001 From: Fabian Wolff Date: Thu, 1 Jul 2021 13:26:17 +0200 Subject: [PATCH] Reword error message slightly --- compiler/rustc_typeck/src/check/callee.rs | 2 +- src/test/ui/lang-items/issue-86238.stderr | 2 +- 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