]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-40510-3.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / issues / issue-40510-3.rs
1 #![allow(unused)]
2
3 fn f() {
4     let mut x: Vec<()> = Vec::new();
5
6     || {
7         || {
8             x.push(())
9         }
10         //~^^^ ERROR captured variable cannot escape `FnMut` closure body
11     };
12 }
13
14 fn main() {}