You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#![feature(proc_macro_hygiene, stmt_expr_attributes)]
|
|
|
|
use remain::sorted;
|
|
|
|
enum E {
|
|
Aaa,
|
|
Bbb(u8, u8),
|
|
Ccc(u8),
|
|
Ddd { u: u8 },
|
|
}
|
|
|
|
fn main() {
|
|
let value = E::Aaa;
|
|
|
|
#[sorted]
|
|
let _ = match value {
|
|
E::Aaa => {}
|
|
E::Ccc(_) => {}
|
|
E::Ddd { u: _ } => {}
|
|
E::Bbb(_, _) => {}
|
|
};
|
|
}
|