Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
ddb81ce68047d6383a789c8da514e443faea8349
/
.
/
tests
/
ui
/
structs-enums
/
struct-enum-ignoring-field-with-underscore.rs
blob: b569993c6143edeff75e58bcf35395ba12bcee61 [
file
] [
log
] [
blame
]
enum
Foo
{
Bar
{
bar
:
bool
},
Other
,
}
fn
main
()
{
let
foo
=
Some
(
Foo
::
Other
);
if
let
Some
(
Foo
::
Bar
{
_
})
=
foo
{}
//~^ ERROR expected field pattern, found `_`
}