about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRuud van Asseldonk <dev@veniogames.com>2015-04-30 00:56:33 +0200
committerRuud van Asseldonk <dev@veniogames.com>2015-04-30 00:56:33 +0200
commit52e520e902cecc579910e6cabe1658720bfab132 (patch)
treeb50db8d19a27b9114fb7de7a03bd423b46eb3025 /src
parent551a74dddd84cf01440ee84148ebd18bc68bd7c8 (diff)
downloadrust-52e520e902cecc579910e6cabe1658720bfab132.tar.gz
rust-52e520e902cecc579910e6cabe1658720bfab132.zip
rustc: Improve misleading error message for E0282
The error can also occur in cases where a type annotation will not help.
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/traits/error_reporting.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/middle/traits/error_reporting.rs b/src/librustc/middle/traits/error_reporting.rs
index d10ff060418..9f87a9ad65f 100644
--- a/src/librustc/middle/traits/error_reporting.rs
+++ b/src/librustc/middle/traits/error_reporting.rs
@@ -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,