Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
moves
/
move-arg-2.rs
blob: 77ee06e192e73c17fc00915b211a850e9830a257 [
file
] [
log
] [
blame
]
// run-pass
fn
test
(
foo
:
Box
<
Vec
<
isize
>>)
{
assert_eq
!((*
foo
)[
0
],
10
);
}
pub
fn
main
()
{
let
x
=
Box
::
new
(
vec
![
10
]);
// Test forgetting a local by move-in
test
(
x
);
// Test forgetting a temporary by move-in.
test
(
Box
::
new
(
vec
![
10
]));
}