blob: ac07181e0633098fd0003dd511dea84fcd6c1642 [file] [log] [blame]
//@ run-pass
#![feature(if_let_guard)]
enum Foo {
A,
B,
C,
D,
E,
}
use Foo::*;
fn main() {
for foo in &[A, B, C, D, E] {
match *foo {
| A => println!("A"),
| B | C if 1 < 2 => println!("BC!"),
| D if let 1 = 1 => println!("D!"),
| _ => {},
}
}
}