2018-12-16 21:21:47 -06:00
|
|
|
trait Foo {
|
2015-01-08 05:02:42 -06:00
|
|
|
fn bar(&self, x: usize) -> Self;
|
2012-02-12 09:17:42 -06:00
|
|
|
}
|
2018-12-16 21:21:47 -06:00
|
|
|
impl Foo for isize {
|
2015-01-08 04:54:35 -06:00
|
|
|
fn bar(&self) -> isize {
|
2018-12-16 21:21:47 -06:00
|
|
|
//~^ ERROR method `bar` has 1 parameter but the declaration in trait `Foo::bar` has 2
|
2013-03-13 19:57:30 -05:00
|
|
|
*self
|
2012-02-12 09:17:42 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|