Skip to content

Commit e2f33e6

Browse files
committed
Add xfailed test for #3908
1 parent 1c8c1b2 commit e2f33e6

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

src/test/auxiliary/pub_use_xcrate1.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub struct Foo {
2+
name: int
3+
}

src/test/auxiliary/pub_use_xcrate2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
extern mod pub_use_xcrate1;
2+
3+
pub use pub_use_xcrate1::Foo;

src/test/run-pass/pub-use-xcrate.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// xfail-test Issue #3908
2+
// aux-build:pub_use_xcrate1.rs
3+
// aux-build:pub_use_xcrate2.rs
4+
5+
extern mod pub_use_xcrate2;
6+
7+
use pub_use_xcrate2::Foo;
8+
9+
fn main() {
10+
let foo: Foo = Foo {
11+
name: 0
12+
};
13+
}
14+

0 commit comments

Comments
 (0)