Source file src/internal/types/testdata/check/go1_16.go

     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" */ )
    16  

View as plain text