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