Improve error message for "for x in [1,2,3] {" #17574
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Beginners are often confused by the error message
Perhaps if there's an
iter()
method we should suggest calling it. This involves hardcoding the name "iter", but only for the purposes of a hint that can be wrong sometimes.The text was updated successfully, but these errors were encountered: