Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
issues
/
issue-17800.rs
blob: 45879d68b354157b6807f1033f750a73cdafbd7d [
file
] [
log
] [
blame
]
enum
MyOption
<
T
>
{
MySome
(
T
),
MyNone
,
}
fn
main
()
{
match
MyOption
::
MySome
(
42
)
{
MyOption
::
MySome
{
x
:
42
}
=>
(),
//~^ ERROR variant `MyOption::MySome` does not have a field named `x`
_
=>
(),
}
}