// Test that unboxed closures cannot capture their own type. // // Also regression test for issue #21410. fn g(_: F) where F: FnOnce(Option) {} fn main() { g(|_| { }); //~ ERROR closure/generator type that references itself }