rust/tests/ui/stdlib-unit-tests/matches2021.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
245 B
Rust
Raw Normal View History

2021-05-25 15:34:44 +00:00
//@ run-pass
//@ edition:2021
// regression test for https://github.com/rust-lang/rust/pull/85678
#![feature(assert_matches)]
2021-07-16 18:26:20 +00:00
use std::assert_matches::assert_matches;
2021-05-25 15:34:44 +00:00
fn main() {
assert!(matches!((), ()));
assert_matches!((), ());
}