summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/const-bound.rs
blob: b1c79db137510d419dd83217df6e03c8e5bbb28a (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<const N: i32> || -> () {};
    //~^ ERROR late-bound const parameter not allowed on closures
}