auto merge of #10509 : cmr/rust/trait_name, r=alexcrichton

Rebase + fix of #10118
This commit is contained in:
bors 2013-11-17 03:16:37 -08:00
commit dff4f52a72
2 changed files with 8 additions and 6 deletions

View file

@ -13,7 +13,7 @@ trait foo {
}
impl foo for int {
fn bar(&self) -> int {
//~^ ERROR method `bar` has 0 parameter(s) but the trait has 1
//~^ ERROR method `bar` has 0 parameters but the declaration in trait `foo::bar` has 1
*self
}
}