blob: 1ba7ac082132ff46c8087f940666cda16f4705c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![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);
}
|