Type inference of inferred repeat expr counts is not as strong as it could be #140855
Labels
A-array
Area: `[T; N]`
C-bug
Category: This is a bug.
F-generic_arg_infer
Using `_` as a const argument: #![feature(generic_arg_infer)]`
F-marker_trait_attr
`#![feature(marker_trait_attr)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
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.The text was updated successfully, but these errors were encountered: