Skip to content

Type inference of inferred repeat expr counts is not as strong as it could be #140855

Open
@BoxyUwU

Description

@BoxyUwU

See the FCP writeup for inference of inferred repeat expr counts: #139635 (comment)

Once marker traits are stable we should experiment with a RepeatExprWf lang item trait in core with marker impls for [T: Copy; N], [T; 0] and [T; 1] which will allow for proper ability to defer/stall the repeat expr wf checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-arrayArea: `[T; N]`C-bugCategory: This is a bug.F-generic_arg_inferUsing `_` as a const argument: #![feature(generic_arg_infer)]`F-marker_trait_attr`#![feature(marker_trait_attr)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions