Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
run-pass
/
readalias.rs
blob: adc6432d0166e1f830b7968d753acfcac398b71e [
file
] [
log
] [
blame
]
// -*- rust -*-
type
point
=
{
x
:
int
,
y
:
int
,
z
:
int
};
fn
f
(
p
:
point
)
{
assert
(
p
.
z
==
12
);
}
fn
main
()
{
let
x
:
point
=
{
x
:
10
,
y
:
11
,
z
:
12
};
f
(
x
);
}