Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
codegen
/
issue-16602-2.rs
blob: 333ea289b4ae5beea5715c7b5bae12960f2833c0 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
struct
A
{
pub
x
:
u32
,
pub
y
:
u32
,
}
fn
main
()
{
let
mut
a
=
A
{
x
:
1
,
y
:
1
};
a
=
A
{
x
:
a
.
y
*
2
,
y
:
a
.
x
*
2
};
assert_eq
!(
a
.
x
,
2
);
assert_eq
!(
a
.
y
,
2
);
}