summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/impl-different-num-params.rs
blob: 53400622d7c308f921f91d81d434dfea9ff22d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {
}