summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/type-bound-2.rs
blob: f4edcdaa9ca9fc0cc28fbef819a41d77a54541b0 (plain)
1
2
3
4
5
6
7
#![feature(closure_lifetime_binder, non_lifetime_binders)]
//~^ WARN  is incomplete and may not be safe to use

fn main() {
    for<T> || -> () {};
    //~^ ERROR late-bound type parameter not allowed on closures
}