Sign in
fuchsia
/
third_party
/
rust
/
03534ac8b70de1134ce7e91b172cd629048a6c8b
/
.
/
tests
/
ui
/
moves
/
move-2.rs
blob: 5e010087465d9e1902eab6cd2d0133ceeccd104c [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
struct
X
{
x
:
isize
,
y
:
isize
,
z
:
isize
}
pub
fn
main
()
{
let
x
:
Box
<
_
>
=
Box
::
new
(
X
{
x
:
1
,
y
:
2
,
z
:
3
});
let
y
=
x
;
assert_eq
!(
y
.
y
,
2
);
}