Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
src
/
tools
/
miri
/
tests
/
pass
/
move-arg-2-unique.rs
blob: de21d67eb4f62cf1756491d1c7d0861cd19bb6da [
file
] [
log
] [
blame
]
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
);
}