rust/src/test/ui/issues/issue-40510-4.rs
2019-07-03 06:30:28 +09:00

16 lines
189 B
Rust

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