rustc --explain E0744 says "while" is forbidden but accepts it nontheless #79083
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I have to use some sort of loop construct within a const function.
rustc --explain E0744
does explain that loop constructs are at the moment not supported, but as I was trying outfor
first and the compiler rejected it, it would have been helpful if the explanation would hint me towardswhile
working.I think the doc just needs a small update and I think the file to update is https://github.com/rust-lang/rust/blob/master/compiler/rustc_error_codes/src/error_codes/E0744.md
I tried this code:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: