Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
tests
/
ui
/
moves
/
moves-based-on-type-tuple.rs
blob: c9951a930225e2d50ccbee33eb0fcf14fc542b45 [
file
] [
log
] [
blame
]
fn
dup
(
x
:
Box
<
isize
>)
->
Box
<(
Box
<
isize
>,
Box
<
isize
>)>
{
Box
::
new
((
x
,
x
))
//~^ ERROR use of moved value: `x` [E0382]
}
fn
main
()
{
dup
(
Box
::
new
(
3
));
}