Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
single-match-else.rs
blob: 1ba7ac082132ff46c8087f940666cda16f4705c5 [
file
] [
log
] [
blame
]
#![
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
);
}