summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-49824.rs
blob: bc1cd6856bc92b576218bc7f5f21e1cfe709499b (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let mut x = 0;
    || {
        || {
        //~^ ERROR captured variable cannot escape `FnMut` closure body
            let _y = &mut x;
        }
    };
}