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.
10 lines
209 B
10 lines
209 B
1 year ago
|
fn main() {
|
||
|
let number: u8 = 4;
|
||
|
|
||
|
match number {
|
||
|
i if i == 0 => println!("Zero"),
|
||
|
i if i > 0 => println!("Greater than zero"),
|
||
|
_ => unreachable!("Should never happen."),
|
||
|
}
|
||
|
}
|