rust/tests/ui/closures/binder/nested-closures-regions.rs
2023-01-11 09:32:08 +00:00

10 lines
165 B
Rust

// check-pass
#![feature(closure_lifetime_binder)]
#![feature(rustc_attrs)]
#[rustc_regions]
fn main() {
for<'a> || -> () { for<'c> |_: &'a ()| -> () {}; };
}