Add xfailed test for #3907
This commit is contained in:
parent
4876eb708c
commit
1c8c1b2181
2 changed files with 23 additions and 0 deletions
3
src/test/auxiliary/trait_typedef_cc.rs
Normal file
3
src/test/auxiliary/trait_typedef_cc.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
pub trait Foo {
|
||||
fn bar();
|
||||
}
|
||||
20
src/test/run-pass/trait-typedef-cc.rs
Normal file
20
src/test/run-pass/trait-typedef-cc.rs
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue