blob: 1d78c2745db2f1404d811dc659da03a12ad5f5d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#![feature(proc_macro_hygiene, stmt_expr_attributes)]
#[remain::sorted]
pub enum TestEnum {
A,
B,
C,
D,
}
#[test]
fn test_match() {
let value = TestEnum::A;
#[remain::sorted]
let _ = match value {
TestEnum::A => {}
TestEnum::B => {}
TestEnum::C => {}
_ => {}
};
}
#[test]
fn test_let() {
let value = TestEnum::A;
#[remain::sorted]
match value {
TestEnum::A => {}
TestEnum::B => {}
TestEnum::C => {}
_ => {}
}
}
|