Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
unique
/
unique-decl-init-copy.rs
blob: 5b9576fcc7a5b65c57badca295471b7c89eeea7d [
file
] [
log
] [
blame
]
// run-pass
pub
fn
main
()
{
let
mut
i
:
Box
<
_
>
=
Box
::
new
(
1
);
// Should be a copy
let
mut
j
=
i
.
clone
();
*
i
=
2
;
*
j
=
3
;
assert_eq
!(*
i
,
2
);
assert_eq
!(*
j
,
3
);
}