add regression test
This commit is contained in:
parent
3ed90e2424
commit
824c7435fa
1 changed files with 12 additions and 0 deletions
12
src/test/ui/matches2021.rs
Normal file
12
src/test/ui/matches2021.rs
Normal 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!((), ());
|
||||
}
|
Loading…
Reference in a new issue