about summary refs log tree commit diff
path: root/src/test/compile-fail/iface-impl-different-num-params.rs
blob: 094dc7ac0621c78933868aec08f17d264dce1a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
iface foo {
    fn bar(x: uint) -> self;
}
impl of foo for int {
    fn bar() -> int {
        //~^ ERROR method `bar` has 0 parameters but the iface has 1
        self
    }
}

fn main() {
}