Much more flow control destructuring in RBE

This commit is contained in:
2023-09-27 23:16:10 -04:00
parent 460741740b
commit ca812add16
8 changed files with 161 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
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."),
}
}