Clippy "explicit_iter_loop" suggestion doesn't compile. #2173
Labels
C-bug
Category: Clippy is not doing the correct thing
good first issue
These issues are a good way to get started with Clippy
T-middle
Type: Probably requires verifiying types
I have the following code:
Clippy gives the following lint:
After changing the code to the suggestion, it does not compile:
The real solution here is
grid.iter()
.My suggestion: somehow check that the suggestion compiles before making it.
The text was updated successfully, but these errors were encountered: