]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-53040.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / nll / issue-53040.rs
1 fn main() {
2     let mut v: Vec<()> = Vec::new();
3     || &mut v;
4 //~^ ERROR captured variable cannot escape `FnMut` closure body
5 }