Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
moves
/
move-2-unique.rs
blob: 8fda3c1c86c6039d2b768f37a6f747e82840aa72 [
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
);
}