Skip to content

Commit

Permalink
Add test case for #2869 (xfailed)
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Jul 11, 2012
1 parent 74f4b8d commit 1806707
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/run-pass/issue-2869.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// xfail-test
enum pat { pat_ident(option<uint>) }

fn f(pat: pat) -> bool { true }

fn num_bindings(pat: pat) -> uint {
alt pat {
pat_ident(_) if f(pat) { 0 }
pat_ident(none) { 1 }
pat_ident(some(sub)) { sub }
}
}

fn main() {}

0 comments on commit 1806707

Please sign in to comment.