-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Badly worded note for non-constant array length #41871
Comments
To clarify, the problem is in the note:
|
The error message today speaks the truth and does so quite well. Closing.
|
The span label is still pretty nonsensical. |
Okay, I'll reopen. Can you provide the exact wording you'd expect? (I personally don't really see any point for a span label, but ... ). |
Either remove the label or just "non-constant value" seems to make more sense to me. It's the "with constant" that is weird IMO. |
I'll PR. |
I just came here after googling |
rustc 1.0.0 - 1.11.0:
error: expected constant integer for repeat count, found variable
rustc 1.12.0 - 1.15.0:
non-constant path in constant expression
rustc 1.16.0 - present:
non-constant used with constant
Can we have the first one back please?
The text was updated successfully, but these errors were encountered: