Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
borrowck
/
borrowck-move-by-capture-ok.rs
blob: b466654814d0ee445fd8dcdc97b5c6a3934f60b2 [
file
] [
log
] [
blame
]
//@ run-pass
pub
fn
main
()
{
let
bar
:
Box
<
_
>
=
Box
::
new
(
3
);
let
h
=
||
->
isize
{
*
bar
};
assert_eq
!(
h
(),
3
);
}