blob: 827c59b6865bf5cd69a1b36acc1f3ed0407d438b (
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
36
|
#![cfg(not(remain_stable_testing))]
#![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 => {}
_ => {}
}
}
|