Adding xfailed test for #3874
This commit is contained in:
parent
abab49b7cf
commit
b269ac13cd
1 changed files with 9 additions and 0 deletions
9
src/test/run-pass/issue-3874.rs
Normal file
9
src/test/run-pass/issue-3874.rs
Normal file
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue