]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch06-enums-and-pattern-matching/listing-06-06/src/main.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / doc / book / listings / ch06-enums-and-pattern-matching / listing-06-06 / src / main.rs
CommitLineData
74b04a01
XL
1fn main() {
2 // ANCHOR: here
94222f64
XL
3 let config_max = Some(3u8);
4 match config_max {
5 Some(max) => println!("The maximum is configured to be {}", max),
74b04a01
XL
6 _ => (),
7 }
8 // ANCHOR_END: here
9}