rust/tests/ui/closures/binder/nested-closures-regions.rs
2024-02-16 20:02:50 +00:00

10 lines
166 B
Rust

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