match match match match match match match match match match
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m27s

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

View file

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