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 match value { 17 E::Aaa => {} 18 #[unsorted] 19 E::Ccc(_) => {} 20 E::Ddd { u: _ } => {} 21 E::Bbb(_, _) => {} 22 } 23 } 24