rust/tests/ui/nll/issue-40510-4.rs
2024-04-07 17:38:07 -03:00

16 lines
153 B
Rust

//@ check-pass
#![allow(unused)]
fn f() {
let x: Vec<()> = Vec::new();
|| {
|| {
x.len()
}
};
}
fn main() {}