github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/types/testdata/check/go1_16.go (about)

     1  // -lang=go1.16
     2  
     3  // Copyright 2021 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.17 or later" */ )