Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
match2.rs
blob: 359936a187cdc82e22c7c8b01b773e25122094c0 [
file
] [
log
] [
blame
]
enum
Foo
{
A
,
B
,
C
(
char
),
D
{
x
:
i64
,
y
:
i64
},
}
fn
inspect
(
f
:
Foo
)
{
match
f
{
Foo
::
A
=>
{}
Foo
::
B
=>
{}
Foo
::
C
(
x
)
=>
{}
Foo
::
D
{
y
}
=>
{}
// { dg-error "pattern does not mention fields x" }
}
}