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 22:09:23 +00:00
fn main() {
let mut x = 0;
|| {
|| {
//~^ ERROR captured variable cannot escape `FnMut` closure body
2018-07-27 22:09:23 +00:00
let _y = &mut x;
}
};
}