You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
fn some_number() -> Option<u32> {
|
|
Some(42)
|
|
}
|
|
|
|
fn main() {
|
|
match some_number() {
|
|
Some(n @ 42) => println!("The Answer: {}!", n),
|
|
Some(n) => println!("Not interesting... {}", n),
|
|
_ => (),
|
|
}
|
|
}
|