Skip to content

Commit 1806707

Browse files
committed
Add test case for #2869 (xfailed)
1 parent 74f4b8d commit 1806707

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// xfail-test
2+
enum pat { pat_ident(option<uint>) }
3+
4+
fn f(pat: pat) -> bool { true }
5+
6+
fn num_bindings(pat: pat) -> uint {
7+
alt pat {
8+
pat_ident(_) if f(pat) { 0 }
9+
pat_ident(none) { 1 }
10+
pat_ident(some(sub)) { sub }
11+
}
12+
}
13+
14+
fn main() {}

0 commit comments

Comments
 (0)