Skip to content

Commit 52e520e

Browse files
committed
rustc: Improve misleading error message for E0282
The error can also occur in cases where a type annotation will not help.
1 parent 551a74d commit 52e520e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/traits/error_reporting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ pub fn maybe_report_ambiguity<'a, 'tcx>(infcx: &InferCtxt<'a, 'tcx>,
290290
{
291291
span_err!(infcx.tcx.sess, obligation.cause.span, E0282,
292292
"unable to infer enough type information about `{}`; \
293-
type annotations required",
293+
type annotations or generic parameter binding required",
294294
self_ty.user_string(infcx.tcx));
295295
} else {
296296
span_err!(infcx.tcx.sess, obligation.cause.span, E0283,

0 commit comments

Comments
 (0)