[T; N]
has no definite size
#96461
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: playground link
The current output is:
This output mirrors the error for slices, "a value of type
[i32]
cannot be built since[i32]
has no definite size", and I suspect this was over-corrected in error.I don't know what the best hints would be for someone trying to collect into an array; whether hinting to collect into a vec and use
try_into
, or to construct a[();N]
andmap
the array.The text was updated successfully, but these errors were encountered: