We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 374c63e commit 7c84efdCopy full SHA for 7c84efd
src/test/run-pass/weird-exprs.rs
@@ -149,6 +149,14 @@ fn i_yield() {
149
};
150
}
151
152
+fn match_nested_if() {
153
+ let val = match () {
154
+ () if if if if true {true} else {false} {true} else {false} {true} else {false} => true,
155
+ _ => false,
156
+ };
157
+ assert!(val);
158
+}
159
+
160
pub fn main() {
161
strange();
162
funny();
@@ -166,4 +174,5 @@ pub fn main() {
166
174
punch_card();
167
175
r#match();
168
176
i_yield();
177
+ match_nested_if();
169
178
0 commit comments