rust/tests/ui/closures/binder/nested-closures.rs

8 lines
123 B
Rust
Raw Normal View History

2022-10-30 15:51:30 -05:00
// check-pass
#![feature(closure_lifetime_binder)]
fn main() {
for<'a> || -> () { for<'c> |_: &'a ()| -> () {}; };
}