4 #![allow(non_camel_case_types)]
8 match "test" { "not-test" => panic!(), "test" => (), _ => panic!() }
10 enum t { tag1(String), tag2, }
13 match t::tag1("test".to_string()) {
15 t::tag1(ref s) if "test" != &**s => panic!(),
16 t::tag1(ref s) if "test" == &**s => (),
20 let x = match "a" { "a" => 1, "b" => 2, _ => panic!() };
23 match "a" { "a" => { } "b" => { }, _ => panic!() }