about summary refs log tree commit diff
path: root/tests/ui/stdlib-unit-tests/matches2021.rs
blob: 78c8be7321362f04f0669406fdaa6a93b26451b3 (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!((), ());
}