1 A control-flow expression was used inside a const context.
3 Erroneous code example:
9 for i in 0..4 { // error!
15 At the moment, `if` and `match`, as well as the looping constructs `for`,
16 `while`, and `loop`, are forbidden inside a `const`, `static`, or `const fn`.
18 This will be allowed at some point in the future, but the implementation is not
19 yet complete. See the tracking issue for [conditionals] or [loops] in a const
20 context for the current status.
22 [conditionals]: https://github.com/rust-lang/rust/issues/49146
23 [loops]: https://github.com/rust-lang/rust/issues/52000