Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
single-match-else.rs
blob: 3a4bbe310ccaa8c2913f0eb595c70cacc57bcc4a [
file
] [
log
] [
blame
]
// run-pass
#![
warn
(
clippy
::
single_match_else
)]
//! Test for https://github.com/rust-lang/rust-clippy/issues/1588
fn
main
()
{
let
n
=
match
(
42
,
43
)
{
(
42
,
n
)
=>
n
,
_
=>
panic
!(
"typeck error"
),
};
assert_eq
!(
n
,
43
);
}