1
0
mirror of https://github.com/golang/go synced 2024-11-22 22:40:02 -07:00
go/test/fixedbugs/issue67141.go

16 lines
301 B
Go
Raw Normal View History

// errorcheck -lang=go1.22
//go:build go1.21
// We need a line directive before the package clause,
// but don't change file name or position so that the
// error message appears at the right place.
//line issue67141.go:10
package p
func _() {
for range 10 { // ERROR "cannot range over 10"
}
}