Skip to content

Commit

Permalink
add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Markeffsky committed May 25, 2021
1 parent 3ed90e2 commit 824c743
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/ui/matches2021.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// run-pass
// edition:2021
// compile-flags: -Zunstable-options

// regression test for https://github.com/rust-lang/rust/pull/85678

#![feature(assert_matches)]

fn main() {
assert!(matches!((), ()));
assert_matches!((), ());
}

0 comments on commit 824c743

Please sign in to comment.