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