]> git.lizzy.rs Git - rust.git/blob - src/test/ui/matches2021.rs
Auto merge of #84560 - cjgillot:inline-iter, r=m-ou-se
[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 fn main() {
10     assert!(matches!((), ()));
11     assert_matches!((), ());
12 }