diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-07-01 13:26:17 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-07-01 13:26:17 +0200 |
| commit | dab25ab56cd7a8132281621ecdf7aee8dfdabd15 (patch) | |
| tree | b781f6b08af20063fbc82b28a48e2c473e12e78c | |
| parent | 6ed16e23b1bd6a294508e2597914977b767c568c (diff) | |
| download | rust-dab25ab56cd7a8132281621ecdf7aee8dfdabd15.tar.gz rust-dab25ab56cd7a8132281621ecdf7aee8dfdabd15.zip | |
Reword error message slightly
| -rw-r--r-- | compiler/rustc_typeck/src/check/callee.rs | 2 | ||||
| -rw-r--r-- | 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 |
