Add xfail'd test for default methods.

This commit is contained in:
Lindsey Kuper 2012-08-13 11:11:09 -07:00
parent b1ec0a582e
commit 1f52ddfe9e

View file

@ -0,0 +1,20 @@
//xfail-test
trait Cat {
fn meow() -> bool;
fn scratch() -> bool;
fn purr() -> bool { true }
}
impl int : Cat {
fn meow() -> bool {
self.scratch()
}
fn scratch() -> bool {
self.purr()
}
}
fn main() {
assert 5.meow();
}