Sign in
android
/
toolchain
/
rustc
/
54272acac043c1dedfb7db7420545b31ec1ac51f
/
.
/
src
/
test
/
rustfix
/
closure-immutable-outer-variable.fixed
blob: 05bbc13d714fac81c2f05c131a0a0dd1d7b0cb75 [
file
] [
log
] [
blame
]
// Point at the captured immutable outer variable
fn foo
(
mut f
:
Box
<
FnMut
()>)
{
f
();
}
fn main
()
{
let
mut y
=
true
;
foo
(
Box
::
new
(
move
||
y
=
false
)
as
Box
<
_
>);
}