]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-wildcards.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / 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 }