Rollup merge of #59583 - oberien:patch-1, r=Centril

match match match match match
This commit is contained in:
Mazdak Farrokhzad 2019-03-31 19:19:54 +02:00 committed by GitHub
commit 9eba66b35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}