Feature request: quick fix to update const array size #13999
Labels
A-diagnostics
diagnostics / error reporting
C-feature
Category: feature request
S-actionable
Someone could pick this issue up and work on it right now
If I declare a
const
array, I need to give it a specific size, in this case 2.When I add or remove a number from the initialiser, the compiler will complain that the listed array length is now wrong. It would be convenient to have a quick fix, which amends the explicit size to match the true number of items in the array.
Here's an example of the fix that I would like applied, changing the array type from
[u8; 2]
to[u8; 3]
.->
The text was updated successfully, but these errors were encountered: