1 // -lang=go1.21 2 3 // Copyright 2022 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 // Check Go language version-specific errors. 8 9 //go:build go1.22 10 11 package p 12 13 func f() { 14 for _ = range /* ok because of upgrade to 1.22 */ 10 { 15 } 16 } 17