rust-clippy/tests/run-pass/single-match-else.rs
2019-01-08 21:46:39 +01:00

9 lines
169 B
Rust

#![warn(clippy::single_match_else)]
fn main() {
let n = match (42, 43) {
(42, n) => n,
_ => panic!("typeck error"),
};
assert_eq!(n, 43);
}