-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Array length inference? #40269
Copy link
Copy link
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-inferenceArea: Type inferenceArea: Type inferenceC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-inferenceArea: Type inferenceArea: Type inferenceC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.
Type
Fields
Give feedbackNo fields configured for issues without a type.
It would be nice if
_were allowed instead of an expression for the length in array types and array expressions, in cases where the length can be inferred based on context:rustc 1.17.0-nightly (b1e3176 2017-03-03)
In comparison, the item type in array expressions and array types can be inferred today: