Source file src/internal/types/testdata/fixedbugs/issue75918.go

     1  // Copyright 2025 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  package p
     6  
     7  import "unsafe"
     8  
     9  type A /* ERROR "invalid recursive type" */ [unsafe.Sizeof(S{})]byte
    10  
    11  type S struct {
    12  	a A
    13  }
    14  

View as plain text