enum Simple {
First,
Second,
Third,
}
fn main() {
let v = Simple::First;
match v {
Simple::First => println!("1"),
n => match n {
Simple::Second => println!("2"),
Simple::Third => println!("3"),
// ใใ๐ใๅฟ
่ฆใชใฎใใใใใใชใ
Simple::First => unreachable!(),
},
}
}If you have a fediverse account, you can quote this note from your own instance. Search https://misskey.io/notes/a56r47qd24hf05ph on your instance and quote it. (Note that quoting is not supported in Mastodon.)