]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/single-match-else.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / src / tools / clippy / tests / ui / crashes / single-match-else.rs
1 #![warn(clippy::single_match_else)]
2
3 //! Test for https://github.com/rust-lang/rust-clippy/issues/1588
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 }