summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-53040.rs
blob: e4ee6e913f6839fa26aeef24e01bcca55138568e (plain)
1
2
3
4
5
fn main() {
    let mut v: Vec<()> = Vec::new();
    || &mut v;
//~^ ERROR captured variable cannot escape `FnMut` closure body
}