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