Skip to content

Commit

Permalink
Adding xfailed test for #3874
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Nov 1, 2012
1 parent abab49b commit b269ac1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/run-pass/issue-3874.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// xfail-test
enum PureCounter { PureCounter(uint) }

pure fn each(self: PureCounter, blk: fn(v: &uint)) {
let PureCounter(ref x) = self;
blk(x);
}

fn main() {}

0 comments on commit b269ac1

Please sign in to comment.