Skip to content

Commit b269ac1

Browse files
committed
Adding xfailed test for #3874
1 parent abab49b commit b269ac1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/run-pass/issue-3874.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// xfail-test
2+
enum PureCounter { PureCounter(uint) }
3+
4+
pure fn each(self: PureCounter, blk: fn(v: &uint)) {
5+
let PureCounter(ref x) = self;
6+
blk(x);
7+
}
8+
9+
fn main() {}

0 commit comments

Comments
 (0)