Sign in
fuchsia
/
third_party
/
rust
/
a526e4faa6b69f1b6ea60e5e692b679e24bb1994
/
.
/
src
/
test
/
run-fail
/
match-wildcards.rs
blob: 7a65ad5255896cff032d8dcc7fe3facc41b50ed5 [
file
] [
log
] [
blame
]
// error-pattern:squirrelcupcake
fn
cmp
()
->
isize
{
match
(
Some
(
'a'
),
None
::<
char
>)
{
(
Some
(
_
),
_
)
=>
{
panic
!(
"squirrelcupcake"
);
}
(
_
,
Some
(
_
))
=>
{
panic
!();
}
_
=>
{
panic
!(
"wat"
);
}
}
}
fn
main
()
{
println
!(
"{}"
,
cmp
());
}