Text file src/go/types/testdata/check/go1_16.src

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Check Go language version-specific errors.
     6  
     7  package go1_16 // go1.16
     8  
     9  type Slice []byte
    10  type Array [8]byte
    11  
    12  var s Slice
    13  var p = (*Array)(s /* ERROR requires go1.17 or later */ )
    14  

View as plain text