auto merge of #10509 : cmr/rust/trait_name, r=alexcrichton
Rebase + fix of #10118
This commit is contained in:
commit
dff4f52a72
2 changed files with 8 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue