1 #![allow(dead_code)] 2 #![cfg(not(remain_stable_testing))] 3 #![feature(proc_macro_hygiene, stmt_expr_attributes)] 4 5 #[remain::sorted] 6 pub enum TestEnum { 7 A, 8 B, 9 C, 10 D, 11 } 12 13 #[remain::sorted] 14 pub struct TestStruct { 15 a: usize, 16 b: usize, 17 c: usize, 18 d: usize, 19 } 20 21 #[test] test_match()22fn test_match() { 23 let value = TestEnum::A; 24 25 #[remain::sorted] 26 let _ = match value { 27 TestEnum::A => {} 28 TestEnum::B => {} 29 TestEnum::C => {} 30 _ => {} 31 }; 32 } 33 34 #[test] test_let()35fn test_let() { 36 let value = TestEnum::A; 37 38 #[remain::sorted] 39 match value { 40 TestEnum::A => {} 41 TestEnum::B => {} 42 TestEnum::C => {} 43 _ => {} 44 } 45 } 46