Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
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
);
}