Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
match
/
match-struct.rs
blob: 7a54c54b98cb85c2762a4d1402797863db58159c [
file
] [
log
] [
blame
]
struct
S
{
a
:
isize
}
enum
E
{
C
(
isize
)
}
fn
main
()
{
match
(
S
{
a
:
1
})
{
E
::
C
(
_
)
=>
(),
//~^ ERROR mismatched types
//~| expected struct `S`, found enum `E`
_
=>
()
}
}