add regression test

This commit is contained in:
Lukas Markeffsky 2021-05-25 17:34:44 +02:00
parent 3ed90e2424
commit 824c7435fa

View file

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