2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2012-01-12 18:23:24 -06:00
|
|
|
// error-pattern:squirrelcupcake
|
2020-04-16 01:50:32 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn cmp() -> isize {
|
2013-05-24 21:35:29 -05:00
|
|
|
match (Some('a'), None::<char>) {
|
2016-05-26 21:39:36 -05:00
|
|
|
(Some(_), _) => {
|
|
|
|
panic!("squirrelcupcake");
|
|
|
|
}
|
|
|
|
(_, Some(_)) => {
|
|
|
|
panic!();
|
|
|
|
}
|
|
|
|
_ => {
|
|
|
|
panic!("wat");
|
|
|
|
}
|
2012-01-12 18:23:24 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-26 21:39:36 -05:00
|
|
|
fn main() {
|
|
|
|
println!("{}", cmp());
|
|
|
|
}
|