Sign in
rust
/
rust
/
9b1f20d20dc00a950f99a00a34be9d2ca78d1f0d
/
.
/
tests
/
ui
/
closures
/
nested-closure-escape-borrow.rs
blob: afd440ba425057160352f37aff9ccbd1f08f539b [
file
]
//! regression test for <https://github.com/rust-lang/rust/issues/49824>
fn
main
()
{
let
mut
x
=
0
;
||
{
||
{
//~^ ERROR captured variable cannot escape `FnMut` closure body
let
_y
=
&
mut
x
;
}
};
}