]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-53040.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[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 }