Closed
Description
In discussion during the implementation of #61405 we changed range-over-func to require mentioning iteration variables. The idea is that if we do end up with idioms like:
for line, err := range FileLines("/etc/passwd") {
...
}
Then we want to diagnose:
for line := range FileLines("/etc/passwd") {
...
}
as an error. However, this is inconsistent with other range loops and also not what the #61405 text said. Probably we should change it. Starting a separate proposal for that discussion.