mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
232 B
Rust
13 lines
232 B
Rust
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() {
|
|
}
|