]> git.lizzy.rs Git - rust.git/blob - src/test/ui/matches2021.rs
a6fa5128d2f862d66136cdc22e98883f9ed56ed1
[rust.git] / src / test / ui / matches2021.rs
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 use std::assert::assert_matches;
10
11 fn main() {
12     assert!(matches!((), ()));
13     assert_matches!((), ());
14 }