Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
src
/
test
/
ui
/
issues
/
issue-39362.rs
blob: ea3c8f88e0b36cf2629da444f7c1af7f4eb07724 [
file
] [
log
] [
blame
]
enum
Foo
{
Bar
{
bar
:
Bar
,
id
:
usize
}
}
enum
Bar
{
A
,
B
,
C
,
D
,
E
,
F
}
fn
test
(
f
:
Foo
)
{
match
f
{
//~^ ERROR non-exhaustive patterns
//~| patterns
Foo
::
Bar
{
bar
:
Bar
::
A
,
..
}
=>
(),
Foo
::
Bar
{
bar
:
Bar
::
B
,
..
}
=>
(),
}
}
fn
main
()
{}