38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
10 lines
169 B
Rust
10 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);
|
|
}
|