2021-05-25 17:34:44 +02:00
|
|
|
// run-pass
|
|
|
|
// edition:2021
|
|
|
|
|
|
|
|
// regression test for https://github.com/rust-lang/rust/pull/85678
|
|
|
|
|
|
|
|
#![feature(assert_matches)]
|
|
|
|
|
2021-07-16 11:26:20 -07:00
|
|
|
use std::assert_matches::assert_matches;
|
2021-07-07 16:25:46 +00:00
|
|
|
|
2021-05-25 17:34:44 +02:00
|
|
|
fn main() {
|
|
|
|
assert!(matches!((), ()));
|
|
|
|
assert_matches!((), ());
|
|
|
|
}
|