Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
single-match-else.rs
blob: 2ef5dd891c565af5a95abf88bbc178216063c011 [
file
] [
log
] [
blame
]
//@ check-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
);
}