We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c0738 commit dff97d5Copy full SHA for dff97d5
src/test/ui/weird-exprs.rs
@@ -164,6 +164,12 @@ fn monkey_barrel() {
164
assert_eq!(val, ());
165
}
166
167
+fn bathroom_stall() {
168
+ let mut i = 1;
169
+ matches!(2, _|_|_|_|_|_ if (i+=1) != (i+=1));
170
+ assert_eq!(i, 13);
171
+}
172
+
173
pub fn main() {
174
strange();
175
funny();
@@ -183,4 +189,5 @@ pub fn main() {
183
189
i_yield();
184
190
match_nested_if();
185
191
monkey_barrel();
192
+ bathroom_stall();
186
193
0 commit comments