mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
21 lines
376 B
Rust
21 lines
376 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());
|
|
}
|