Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
union
/
union-field-access-error-65462.rs
blob: ead403bc526cd628a8ff4cf3eb7072a4668ee189 [
file
] [
log
] [
blame
]
// https://github.com/rust-lang/rust/issues/65462
//@ build-pass
enum
Empty
{}
enum
Enum
{
Empty
(
Empty
)
}
fn
foobar
()
->
Option
<
Enum
>
{
let
value
:
Option
<
Empty
>
=
None
;
Some
(
Enum
::
Empty
(
value
?
)
)
}
fn
main
()
{
foobar
();
}