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