]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch18-patterns-and-matching/listing-18-19/src/main.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch18-patterns-and-matching / listing-18-19 / src / main.rs
CommitLineData
74b04a01
XL
1fn main() {
2 // ANCHOR: here
3 let numbers = (2, 4, 8, 16, 32);
4
5 match numbers {
6 (first, _, third, _, fifth) => {
923072b8 7 println!("Some numbers: {first}, {third}, {fifth}")
74b04a01
XL
8 }
9 }
10 // ANCHOR_END: here
11}