blob: 53400622d7c308f921f91d81d434dfea9ff22d14 [file] [log] [blame]
trait Foo {
fn bar(&self, x: usize) -> Self;
}
impl Foo for isize {
fn bar(&self) -> isize {
//~^ ERROR method `bar` has 1 parameter but the declaration in trait `Foo::bar` has 2
*self
}
}
fn main() {
}