1 #![feature(proc_macro_hygiene, stmt_expr_attributes)] 2 3 use remain::sorted; 4 5 enum E { 6 Aaa, 7 Bbb(u8, u8), 8 Ccc(u8), 9 Ddd { u: u8 }, 10 } 11 main()12fn main() { 13 let value = E::Aaa; 14 15 #[sorted] 16 let _ = match value { 17 E::Aaa => {} 18 E::Ccc(_) => {} 19 E::Ddd { u: _ } => {} 20 E::Bbb(_, _) => {} 21 }; 22 } 23