nにマッチした時点でSimple::FirstにマッチすることはないからSimple::SecondとSimple::Thirdだけで網羅してることになりそうなのに
@sorairolake Rust はこの手の解析いっさいやらないと思います。
今回の場合は以下で全く同じことが実現できるかと思います:
enum Simple {
First,
SecondOrThird(SecondOrThird),
}
enum SecondOrThird {
Second,
Third,
}If you have a fediverse account, you can quote this note from your own instance. Search https://misskey.io/notes/a56re7nyxwzd07io on your instance and quote it. (Note that quoting is not supported in Mastodon.)