Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
closure_context
/
issue-26046-fn-mut.rs
blob: 0a015ea1436c5d69df9138d0a3aec50f2080e72c [
file
] [
log
] [
blame
]
fn
foo
()
->
Box
<
dyn
Fn
()>
{
let
num
=
5
;
let
closure
=
||
{
//~ ERROR expected a closure that
num
+=
1
;
};
Box
::
new
(
closure
)
}
fn
main
()
{}