]> git.proxmox.com Git - rustc.git/blob - tests/ui/match/match-wildcards.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / match / match-wildcards.rs
1 // run-fail
2 // error-pattern:squirrelcupcake
3 // ignore-emscripten no processes
4
5 fn cmp() -> isize {
6 match (Some('a'), None::<char>) {
7 (Some(_), _) => {
8 panic!("squirrelcupcake");
9 }
10 (_, Some(_)) => {
11 panic!();
12 }
13 _ => {
14 panic!("wat");
15 }
16 }
17 }
18
19 fn main() {
20 println!("{}", cmp());
21 }