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

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

10 lines
142 B
Rust
Raw Normal View History

2021-07-29 00:56:03 +00:00
#![feature(const_for)]
const _: () = {
for _ in 0..5 {}
2024-11-22 02:31:42 +00:00
//~^ ERROR cannot use `for`
//~| ERROR cannot use `for`
2021-07-29 00:56:03 +00:00
};
fn main() {}