Skip to content

Commit

Permalink
match match match match match
Browse files Browse the repository at this point in the history
  • Loading branch information
oberien authored Mar 31, 2019
1 parent cee58fd commit 55b7efe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/run-pass/weird-exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -142,4 +157,5 @@ pub fn main() {
union();
special_characters();
punch_card();
r#match();
}

0 comments on commit 55b7efe

Please sign in to comment.