2012-07-31 10:27:51 -07:00
|
|
|
trait foo {
|
2012-02-12 07:17:42 -08:00
|
|
|
fn bar(x: uint) -> self;
|
|
|
|
}
|
|
|
|
impl of foo for int {
|
|
|
|
fn bar() -> int {
|
2012-07-30 14:51:21 -07:00
|
|
|
//~^ ERROR method `bar` has 0 parameters but the trait has 1
|
2012-02-12 07:17:42 -08:00
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|