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

7 lines
155 B
Rust
Raw Normal View History

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