]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/crashes/single-match-else.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / crashes / single-match-else.rs
CommitLineData
f20569fa
XL
1#![warn(clippy::single_match_else)]
2
3//! Test for https://github.com/rust-lang/rust-clippy/issues/1588
4
5fn main() {
6 let n = match (42, 43) {
7 (42, n) => n,
8 _ => panic!("typeck error"),
9 };
10 assert_eq!(n, 43);
11}