Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
da873169707da0bdbc8a53d51bf1272ef6d365b8
/
.
/
src
/
test
/
ui
/
readalias.rs
blob: a6bf61803cf8521e2baf7c3b688c28ef033412aa [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
struct
Point
{
x
:
isize
,
y
:
isize
,
z
:
isize
}
fn
f
(
p
:
Point
)
{
assert_eq
!(
p
.
z
,
12
);
}
pub
fn
main
()
{
let
x
:
Point
=
Point
{
x
:
10
,
y
:
11
,
z
:
12
};
f
(
x
);
}