Add xfailed test for #3907

This commit is contained in:
Brian Anderson 2012-11-02 15:37:21 -07:00
parent 4876eb708c
commit 1c8c1b2181
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,3 @@
pub trait Foo {
fn bar();
}

View file

@ -0,0 +1,20 @@
// xfail-test FIXME: #3907
// aux-build:trait_typedef_cc.rs
extern mod trait_typedef_cc;
type Foo = trait_typedef_cc::Foo;
struct S {
name: int
}
impl S: Foo {
fn bar() { }
}
fn main() {
let s = S {
name: 0
};
s.bar();
}