1// errorcheck -lang=go1.22 2 3//go:build go1.21 4 5// We need a line directive before the package clause, 6// but don't change file name or position so that the 7// error message appears at the right place. 8 9//line issue67141.go:10 10package p 11 12func _() { 13 for range 10 { // ERROR "cannot range over 10" 14 } 15} 16