rust/src/test/compile-fail/trait-impl-different-num-params.rs
2012-08-08 18:19:24 -07:00

13 lines
186 B
Rust

trait foo {
fn bar(x: uint) -> self;
}
impl int: foo {
fn bar() -> int {
//~^ ERROR method `bar` has 0 parameters but the trait has 1
self
}
}
fn main() {
}