diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-02-13 07:33:16 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-02-13 07:33:16 -0800 |
| commit | 520c3f5f798f65b7b26fe9c7f6409ef2f3cf6984 (patch) | |
| tree | 55c12f94654c3b3f48f48b33e4c530a43b898af3 /src/comp | |
| parent | 3a2f1e1876061ccf7eeffe7f4adba0874c7a98ae (diff) | |
correct error message and add to test
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/middle/typeck.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index f80e20bd701..bcfb50f287e 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -621,7 +621,7 @@ fn compare_impl_method(tcx: ty::ctxt, sp: span, impl_m: ty::method, "` has an incompatible set of type parameters"); ty::mk_fn(tcx, impl_m.fty) } else if vec::len(impl_m.fty.inputs) != vec::len(if_m.fty.inputs) { - tcx.sess.span_err(sp,#fmt["method `%s`` has %u parameters \ + tcx.sess.span_err(sp,#fmt["method `%s` has %u parameters \ but the iface has %u", if_m.ident, vec::len(impl_m.fty.inputs), |
