Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
unique
/
unique-assign-drop.rs
blob: 32068e79df49cf8939bb3ac3e95e3720680e70f0 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
unused_assignments
)]
#![
feature
(
box_syntax
)]
pub
fn
main
()
{
let
i
:
Box
<
_
>
=
box
1
;
let
mut
j
:
Box
<
_
>
=
box
2
;
// Should drop the previous value of j
j
=
i
;
assert_eq
!(*
j
,
1
);
}