Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
issues
/
issue-40510-captured-variable-return
/
issue-40510-3.rs
blob: 181263adcbfa8902f7c610634a7658215951a56a [
file
] [
log
] [
blame
]
#![
allow
(
unused
)]
fn
f
()
{
let
mut
x
:
Vec
<()>
=
Vec
::
new
();
||
{
||
{
x
.
push
(())
}
//~^^^ ERROR captured variable cannot escape `FnMut` closure body
};
}
fn
main
()
{}