Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
moves
/
move-2.rs
blob: 4ad53e96e50f2d1cd9596a54efc525fdc061312d [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
#![
feature
(
box_syntax
)]
struct
X
{
x
:
isize
,
y
:
isize
,
z
:
isize
}
pub
fn
main
()
{
let
x
:
Box
<
_
>
=
box X
{
x
:
1
,
y
:
2
,
z
:
3
};
let
y
=
x
;
assert_eq
!(
y
.
y
,
2
);
}