Sign in
fuchsia
/
third_party
/
rust
/
75c82b4dd8152562ff2056f2172b20aa9c46def2
/
.
/
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
<
_
>);
}