summaryrefslogtreecommitdiffstats
path: root/src/test/ui/stdlib-unit-tests/matches2021.rs
blob: 9143a8cdd59bc915e1daff145d699adcb6fa5cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
// edition:2021

// regression test for https://github.com/rust-lang/rust/pull/85678

#![feature(assert_matches)]

use std::assert_matches::assert_matches;

fn main() {
    assert!(matches!((), ()));
    assert_matches!((), ());
}