1
Fork 0

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