Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
run-pass
/
uniq-cc.rs
blob: 950075917834f133daa21ea668d0f6627b917831 [
file
]
enum
maybe_pointy
{
none
,
p
(
@pointy
),
}
type
pointy
=
{
mut
a
:
maybe_pointy
,
c
:
~
int
,
d
:
fn
~()->(),
};
fn
empty_pointy
()
->
@pointy
{
return
@{
mut
a
:
none
,
c
:
~
22
,
d
:
fn
~()->(){},
}
}
fn
main
()
{
let
v
=
empty_pointy
();
v
.
a
=
p
(
v
);
}