rust/tests/ui/closures/binder/const-bound.rs

8 lines
228 B
Rust
Raw Normal View History

2023-02-17 21:34:27 -06:00
#![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
}