Diagnostics: suggest using array::IntoIter::new
to iterate over arrays
#82602
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.
When following the const-generics beta MVP blog post we ran into this diagnostics error. The blog post specifically requests filing const-generics related diagnostics issues, so here goes!
Given the following code:
The current output is:
Ideally the output should look like:
The text was updated successfully, but these errors were encountered: