]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/match-wildcards.rs
Use better bound names in `-Zverbose` mode
[rust.git] / src / test / run-fail / match-wildcards.rs
1 // error-pattern:squirrelcupcake
2 fn cmp() -> isize {
3     match (Some('a'), None::<char>) {
4         (Some(_), _) => {
5             panic!("squirrelcupcake");
6         }
7         (_, Some(_)) => {
8             panic!();
9         }
10         _ => {
11             panic!("wat");
12         }
13     }
14 }
15
16 fn main() {
17     println!("{}", cmp());
18 }