-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In the match, the 4 variants are not ordered (B, E, C, D):
extern crate remain;
#[remain::sorted]
#[derive(Clone, Copy)]
enum My {
A,
B,
C,
D,
E,
}
#[remain::check]
fn f(a: My) {
#[remain::sorted]
match a {
My::A => (),
My::B | My::E | My::C | My::D => (),
}
}
fn main() {
f(My::E);
}
... and thanks for all your cool rust stuff! I am also going through the quiz... wow! :-)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels