]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-for-feature-gate.rs
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / 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() {}