Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
moves
/
move-arg-2.rs
blob: 4cd1f6fe8105e0765f7314287b819ebae794537b [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
box_syntax
)]
fn
test
(
foo
:
Box
<
Vec
<
isize
>>)
{
assert_eq
!((*
foo
)[
0
],
10
);
}
pub
fn
main
()
{
let
x
=
box vec
![
10
];
// Test forgetting a local by move-in
test
(
x
);
// Test forgetting a temporary by move-in.
test
(
box vec
![
10
]);
}