match match match match match

This commit is contained in:
Jaro Fietz 2019-03-31 15:20:10 +02:00 committed by GitHub
parent cee58fdc12
commit 55b7efe29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

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