@mdempsky requested issue #62498 to be considered for backport to the next 1.21 minor release.
Here's a standalone repro of the issue: https://go.dev/play/p/5eDYV-mzqg9
There's nothing wrong with this code, and it compiled in Go 1.20. So I think this is a regression that should be backported.
@gopherbot Please backport to Go 1.21. This is a compilation failure of valid code that used to work in Go 1.20.