blob: 0464d1f9e5e08713a25ce073fa95fe99d9a7b7ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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"
}
}
|