]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-for-feature-gate.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / consts / const-for-feature-gate.rs
1 // gate-test-const_for
2
3 const _: () = {
4     for _ in 0..5 {}
5     //~^ error: `for` is not allowed in a `const`
6 };
7
8 fn main() {}