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

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

9 lines
128 B
Rust
Raw Normal View History

// gate-test-const_for
const _: () = {
for _ in 0..5 {}
//~^ error: `for` is not allowed in a `const`
};
fn main() {}