mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 04:23:22 +00:00
11 lines
236 B
Rust
11 lines
236 B
Rust
#![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);
|
|
}
|