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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
}