2018-07-30 04:33:44 -05:00
|
|
|
#![warn(clippy::single_match_else)]
|
2017-03-03 09:56:16 -06:00
|
|
|
|
2019-02-06 00:45:57 -06:00
|
|
|
//! Test for https://github.com/rust-lang/rust-clippy/issues/1588
|
|
|
|
|
2017-03-03 09:56:16 -06:00
|
|
|
fn main() {
|
|
|
|
let n = match (42, 43) {
|
|
|
|
(42, n) => n,
|
|
|
|
_ => panic!("typeck error"),
|
|
|
|
};
|
|
|
|
assert_eq!(n, 43);
|
|
|
|
}
|