Sign in
rust
/
rust
/
08650fbb506c44fbc95d91abfb7cd95a56bbff30
/
.
/
src
/
test
/
ui
/
stdlib-unit-tests
/
matches2021.rs
blob: 9143a8cdd59bc915e1daff145d699adcb6fa5cd6 [
file
]
// 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
!((),
());
}