Sign in
android
/
toolchain
/
rustc
/
5bd94c128c5702589f742e958fb8ae82646357c9
/
.
/
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
);
}