Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
compile-fail
/
issue-2111.rs
blob: 6821e8fc80008b221f0b13205175d17d1dd9272f [
file
] [
log
] [
blame
]
fn
foo
(
a
:
Option
<
uint
>,
b
:
Option
<
uint
>)
{
match
(
a
,
b
)
{
//~ ERROR: non-exhaustive patterns: None not covered
(
Some
(
a
),
Some
(
b
))
if
a
==
b
=>
{
}
(
Some
(
_
),
None
)
|
(
None
,
Some
(
_
))
=>
{
}
}
}
fn
main
()
{
foo
(
None
,
None
);
}