We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d198db + 55b7efe commit 9eba66bCopy full SHA for 9eba66b
src/test/run-pass/weird-exprs.rs
@@ -127,6 +127,21 @@ fn punch_card() -> impl std::fmt::Debug {
127
..=.. ..=.. .. ..=..=.. ..=..=.. .. .. ..=.. ..
128
}
129
130
+fn r#match() {
131
+ let val = match match match match match () {
132
+ () => ()
133
+ } {
134
135
136
137
138
139
140
141
+ };
142
+ assert_eq!(val, ());
143
+}
144
+
145
pub fn main() {
146
strange();
147
funny();
@@ -142,4 +157,5 @@ pub fn main() {
157
union();
158
special_characters();
159
punch_card();
160
+ r#match();
161
0 commit comments