mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Add test case for #2869 (xfailed)
This commit is contained in:
@@ -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() {}
|
||||
Reference in New Issue
Block a user