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

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