mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
22 lines
373 B
Rust
22 lines
373 B
Rust
// run-fail
|
|
// error-pattern:squirrelcupcake
|
|
// ignore-emscripten no processes
|
|
|
|
fn cmp() -> isize {
|
|
match (Some('a'), None::<char>) {
|
|
(Some(_), _) => {
|
|
panic!("squirrelcupcake");
|
|
}
|
|
(_, Some(_)) => {
|
|
panic!();
|
|
}
|
|
_ => {
|
|
panic!("wat");
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
println!("{}", cmp());
|
|
}
|