Skip to content

Commit

Permalink
rustc: Improve misleading error message for E0282
Browse files Browse the repository at this point in the history
The error can also occur in cases where a type annotation will not help.
  • Loading branch information
ruuda committed Apr 29, 2015
1 parent 551a74d commit 52e520e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/traits/error_reporting.rs
Expand Up @@ -290,7 +290,7 @@ pub fn maybe_report_ambiguity<'a, 'tcx>(infcx: &InferCtxt<'a, 'tcx>,
{
span_err!(infcx.tcx.sess, obligation.cause.span, E0282,
"unable to infer enough type information about `{}`; \
type annotations required",
type annotations or generic parameter binding required",
self_ty.user_string(infcx.tcx));
} else {
span_err!(infcx.tcx.sess, obligation.cause.span, E0283,
Expand Down

0 comments on commit 52e520e

Please sign in to comment.