rust/tests/ui/closures/binder/const-bound.rs
2024-07-20 19:45:24 -04:00

9 lines
296 B
Rust

#![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 parameters cannot be used currently
//~| ERROR late-bound const parameter not allowed on closures
}