rust/src/test/compile-fail/iface-impl-different-num-params.rs

13 lines
192 B
Rust
Raw Normal View History

iface foo {
fn bar(x: uint) -> self;
}
impl of foo for int {
fn bar() -> int {
2012-02-13 09:33:16 -06:00
//!^ ERROR method `bar` has 0 parameters but the iface has 1
self
}
}
fn main() {
}