rust/tests/ui/stdlib-unit-tests/matches2021.rs
2026-02-11 14:13:44 +01:00

11 lines
200 B
Rust

//@ run-pass
//@ edition:2021
// regression test for https://github.com/rust-lang/rust/pull/85678
use std::assert_matches;
fn main() {
assert!(matches!((), ()));
assert_matches!((), ());
}