]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-40510-3.rs
New upstream version 1.68.2+dfsg1
[rustc.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() {}