Skip to content

Commit 824c743

Browse files
author
Lukas Markeffsky
committed
add regression test
1 parent 3ed90e2 commit 824c743

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/ui/matches2021.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// run-pass
2+
// edition:2021
3+
// compile-flags: -Zunstable-options
4+
5+
// regression test for https://github.com/rust-lang/rust/pull/85678
6+
7+
#![feature(assert_matches)]
8+
9+
fn main() {
10+
assert!(matches!((), ()));
11+
assert_matches!((), ());
12+
}

0 commit comments

Comments
 (0)