From 55b7efe29f333427bdc0d664a13171490ee615cc Mon Sep 17 00:00:00 2001 From: Jaro Fietz Date: Sun, 31 Mar 2019 15:20:10 +0200 Subject: [PATCH] match match match match match --- src/test/run-pass/weird-exprs.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/test/run-pass/weird-exprs.rs b/src/test/run-pass/weird-exprs.rs index 7ce7e29e87235..ae4de92ff7488 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(); }