]> git.lizzy.rs Git - rust.git/blob - tests/run-pass/single-match-else.rs
Merge pull request #2065 from rust-lang-nursery/cargo_clippy
[rust.git] / tests / run-pass / single-match-else.rs
1
2
3 #![warn(single_match_else)]
4
5 fn main() {
6     let n = match (42, 43) {
7         (42, n) => n,
8         _ => panic!("typeck error"),
9     };
10     assert_eq!(n, 43);
11 }