Skip to content

Commit 9eba66b

Browse files
authored
Rollup merge of #59583 - oberien:patch-1, r=Centril
match match match match match
2 parents 9d198db + 55b7efe commit 9eba66b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test/run-pass/weird-exprs.rs

+16
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,21 @@ fn punch_card() -> impl std::fmt::Debug {
127127
..=.. ..=.. .. ..=..=.. ..=..=.. .. .. ..=.. ..
128128
}
129129

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+
130145
pub fn main() {
131146
strange();
132147
funny();
@@ -142,4 +157,5 @@ pub fn main() {
142157
union();
143158
special_characters();
144159
punch_card();
160+
r#match();
145161
}

0 commit comments

Comments
 (0)