Show the name of the trait in the error message
This commit is contained in:
parent
90754ae9c9
commit
51bdec18b0
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 trait method `foo::bar` has 1
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue