Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
structs
/
struct-like-enum-nonexhaustive.rs
blob: b1fc0f5ad3e1478989e983728df273d6a8404964 [
file
] [
log
] [
blame
]
enum
A
{
B
{
x
:
Option
<
isize
>
},
C
}
fn
main
()
{
let
x
=
A
::
B
{
x
:
Some
(
3
)
};
match
x
{
//~ ERROR non-exhaustive patterns
A
::
C
=>
{}
A
::
B
{
x
:
None
}
=>
{}
}
}