Skip to content

Commit dab25ab

Browse files
committed
Reword error message slightly
1 parent 6ed16e2 commit dab25ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_typeck/src/check/callee.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ impl<'a, 'tcx> DeferredCallResolution<'tcx> {
596596
);
597597
err.help(
598598
"make sure the `fn`/`fn_mut`/`fn_once` lang items are defined \
599-
and have an associated `call`/`call_mut`/`call_once` function",
599+
and have associated `call`/`call_mut`/`call_once` functions",
600600
);
601601
err.emit();
602602
}

src/test/ui/lang-items/issue-86238.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: failed to find an overloaded call trait for closure call
44
LL | one()
55
| ^^^^^
66
|
7-
= help: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined and have an associated `call`/`call_mut`/`call_once` function
7+
= help: make sure the `fn`/`fn_mut`/`fn_once` lang items are defined and have associated `call`/`call_mut`/`call_once` functions
88

99
error: aborting due to previous error
1010

0 commit comments

Comments
 (0)