]> git.lizzy.rs Git - rust.git/blob - tests/ui/stdlib-unit-tests/matches2021.rs
Rollup merge of #107272 - compiler-errors:new-solver-more-predicates, r=lcnr
[rust.git] / tests / ui / stdlib-unit-tests / matches2021.rs
1 // run-pass
2 // edition:2021
3
4 // regression test for https://github.com/rust-lang/rust/pull/85678
5
6 #![feature(assert_matches)]
7
8 use std::assert_matches::assert_matches;
9
10 fn main() {
11     assert!(matches!((), ()));
12     assert_matches!((), ());
13 }