Show the name of the trait in the error message

This commit is contained in:
Jaemin Moon 2013-10-28 17:18:11 +09:00 committed by Corey Richardson
parent 90754ae9c9
commit 51bdec18b0
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 trait method `foo::bar` has 1
*self
}
}