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