summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-closure_lifetime_binder.rs
blob: b0b494fa3ff13240a558a4a215f55f43013c4201 (plain)
1
2
3
4
5
6
7
8
fn main() {
    for<> || -> () {};
    //~^ ERROR `for<...>` binders for closures are experimental
    for<'a> || -> () {};
    //~^ ERROR `for<...>` binders for closures are experimental
    for<'a, 'b> |_: &'a ()| -> () {};
    //~^ ERROR `for<...>` binders for closures are experimental
}