-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Better slices array type inference #74626
Copy link
Copy link
Open
Labels
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.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
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.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This code:
Currently (rustc 1.47.0-nightly 8ad7bc3 2020-07-21) this gives:
Is it possible to improve the type system so foo2 too compiles?