Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
match
/
match-struct.rs
blob: 4da7b436ba8a82b575b939c97890d96f8db724e0 [
file
] [
log
] [
blame
] [
edit
]
struct
S
{
a
:
isize
}
enum
E
{
C
(
isize
)
}
fn
main
()
{
match
(
S
{
a
:
1
})
{
E
::
C
(
_
)
=>
(),
//~^ ERROR mismatched types
//~| expected `S`, found `E`
_
=>
()
}
}