rust/tests/ui/consts/const-for.rs

10 lines
142 B
Rust

#![feature(const_for)]
const _: () = {
for _ in 0..5 {}
//~^ ERROR cannot use `for`
//~| ERROR cannot use `for`
};
fn main() {}