rust/tests/ui/issues/issue-49824.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
173 B
Rust
Raw Normal View History

2018-07-27 17:09:23 -05:00
fn main() {
let mut x = 0;
|| {
|| {
//~^ ERROR captured variable cannot escape `FnMut` closure body
2018-07-27 17:09:23 -05:00
let _y = &mut x;
}
};
}