Add a bathroom stall to weird expressions test

This commit is contained in:
Thom Chiovoloni 2022-04-29 20:25:02 -07:00
parent 05c07386b4
commit dff97d5329
No known key found for this signature in database
GPG Key ID: E2EFD4309E11C8A8

View File

@ -164,6 +164,12 @@ fn monkey_barrel() {
assert_eq!(val, ());
}
fn bathroom_stall() {
let mut i = 1;
matches!(2, _|_|_|_|_|_ if (i+=1) != (i+=1));
assert_eq!(i, 13);
}
pub fn main() {
strange();
funny();
@ -183,4 +189,5 @@ pub fn main() {
i_yield();
match_nested_if();
monkey_barrel();
bathroom_stall();
}