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
243 B
Rust
Raw Normal View History

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