rust/src/test/ui/matches2021.rs

13 lines
238 B
Rust
Raw Normal View History

2021-05-25 10:34:44 -05:00
// 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!((), ());
}