summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/disallow-ty.rs
blob: bbe3d8488d9825685f20473488f52c19f6b9d76c (plain)
1
2
3
4
5
6
#![feature(closure_lifetime_binder)]

fn main() {
    for<T> || -> () {};
    //~^ ERROR only lifetime parameters can be used in this context
}