2020-04-16 15:50:32 +09:00
|
|
|
// run-fail
|
2012-01-12 16:23:24 -08:00
|
|
|
// error-pattern:squirrelcupcake
|
2020-05-08 00:39:02 +09:00
|
|
|
// ignore-emscripten no processes
|
2020-04-16 15:50:32 +09:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
fn cmp() -> isize {
|
2013-05-24 19:35:29 -07:00
|
|
|
match (Some('a'), None::<char>) {
|
2016-05-27 08:09:36 +05:30
|
|
|
(Some(_), _) => {
|
|
|
|
panic!("squirrelcupcake");
|
|
|
|
}
|
|
|
|
(_, Some(_)) => {
|
|
|
|
panic!();
|
|
|
|
}
|
|
|
|
_ => {
|
|
|
|
panic!("wat");
|
|
|
|
}
|
2012-01-12 16:23:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-27 08:09:36 +05:30
|
|
|
fn main() {
|
|
|
|
println!("{}", cmp());
|
|
|
|
}
|