Skip to content

Commit 0c31f7c

Browse files
committed
---
yaml --- r: 11262 b: refs/heads/master c: 520c3f5 h: refs/heads/master v: v3
1 parent c1fba36 commit 0c31f7c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3a2f1e1876061ccf7eeffe7f4adba0874c7a98ae
2+
refs/heads/master: 520c3f5f798f65b7b26fe9c7f6409ef2f3cf6984
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/comp/middle/typeck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ fn compare_impl_method(tcx: ty::ctxt, sp: span, impl_m: ty::method,
621621
"` has an incompatible set of type parameters");
622622
ty::mk_fn(tcx, impl_m.fty)
623623
} else if vec::len(impl_m.fty.inputs) != vec::len(if_m.fty.inputs) {
624-
tcx.sess.span_err(sp,#fmt["method `%s`` has %u parameters \
624+
tcx.sess.span_err(sp,#fmt["method `%s` has %u parameters \
625625
but the iface has %u",
626626
if_m.ident,
627627
vec::len(impl_m.fty.inputs),

trunk/src/test/compile-fail/iface-impl-different-num-params.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ iface foo {
33
}
44
impl of foo for int {
55
fn bar() -> int {
6+
//!^ ERROR method `bar` has 0 parameters but the iface has 1
67
self
78
}
89
}

0 commit comments

Comments
 (0)