github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/types/testdata/check/go1_19.go (about) 1 // -lang=go1.19 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 package p 10 11 type Slice []byte 12 type Array [8]byte 13 14 var s Slice 15 var p = (Array)(s /* ERROR "requires go1.20 or later" */)