about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-31 19:19:54 +0200
committerGitHub <noreply@github.com>2019-03-31 19:19:54 +0200
commit9eba66b35fd0180e3f5c86f22d7749d512d73560 (patch)
tree05a53b5040e4a18731aa0dce697ac4a7912bae5b
parent9d198db339aa3b97a3f75c8091ba512a83981d0e (diff)
parent55b7efe29f333427bdc0d664a13171490ee615cc (diff)
Rollup merge of #59583 - oberien:patch-1, r=Centril
match match match match match
-rw-r--r--src/test/run-pass/weird-exprs.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/run-pass/weird-exprs.rs b/src/test/run-pass/weird-exprs.rs
index 7ce7e29e872..ae4de92ff74 100644
--- a/src/test/run-pass/weird-exprs.rs
+++ b/src/test/run-pass/weird-exprs.rs
@@ -127,6 +127,21 @@ fn punch_card() -> impl std::fmt::Debug {
     ..=.. ..=..    .. ..=..=..    ..=..=.. ..    .. ..=.. ..
 }
 
+fn r#match() {
+    let val = match match match match match () {
+        () => ()
+    } {
+        () => ()
+    } {
+        () => ()
+    } {
+        () => ()
+    } {
+        () => ()
+    };
+    assert_eq!(val, ());
+}
+
 pub fn main() {
     strange();
     funny();
@@ -142,4 +157,5 @@ pub fn main() {
     union();
     special_characters();
     punch_card();
+    r#match();
 }