Sign in
fuchsia
/
third_party
/
rust
/
0.8
/
.
/
src
/
test
/
compile-fail
/
match-struct.rs
blob: 6e9bf603aef9e7e3759caa9a536d08511b198613 [
file
]
struct
S
{
a
:
int
}
enum
E
{
C
(
int
)
}
fn
main
()
{
match
S
{
a
:
1
}
{
C
(
_
)
=>
(),
//~ ERROR mismatched types: expected `S` but found `E`
_
=>
()
}
}