Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
stdlib-unit-tests
/
matches2021.rs
blob: 78c8be7321362f04f0669406fdaa6a93b26451b3 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
!((),
());
}