Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
borrowck
/
borrowck-move-by-capture-ok.rs
blob: 98e4b881893cbb4e93e1ef339890cf44b76ccf48 [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
box_syntax
)]
pub
fn
main
()
{
let
bar
:
Box
<
_
>
=
box
3
;
let
h
=
||
->
isize
{
*
bar
};
assert_eq
!(
h
(),
3
);
}