match match match match match match match match match match
cargo devel CI / cargo CI (push) Successful in 1m27s Details

This commit is contained in:
Christoph J. Scherr 2024-02-15 16:41:21 +01:00
parent e270fbbdb5
commit 17b431d188
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 30 additions and 13 deletions

View File

@ -1,16 +1,33 @@
fn main() { fn main() {
let deep_type = Option::Some(Option::Some(Option::Some(()))); let deep_type = Option::Some(Option::Some(Option::Some(Option::Some(Option::Some(
match deep_type { Option::Some(Option::Some(Option::Some(1337))),
Some(inner) => match inner { )))));
Some(inner) => match inner { match match match match match match match match deep_type {
Some(inner) => { Some(inner) => inner,
println!("{:?}", inner); return; None => unreachable!(),
} } {
None => {} Some(inner) => inner,
}, None => unreachable!(),
None => {} } {
}, Some(inner) => inner,
None => {} None => unreachable!(),
} {
Some(inner) => inner,
None => unreachable!(),
} {
Some(inner) => inner,
None => unreachable!(),
} {
Some(inner) => inner,
None => unreachable!(),
} {
Some(inner) => inner,
None => unreachable!(),
} {
Some(inner) => {
println!("{:?}", inner);
return;
}
None => unreachable!(),
} }
unreachable!()
} }