3 // Copyright 2017 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.
9 type T0 T0 // ERROR "invalid recursive type"
12 type T1 struct{ T1 } // ERROR "invalid recursive type"
16 type T2 T2 // ERROR "invalid recursive type"
21 type T3 struct{ T3 } // ERROR "invalid recursive type"
26 type T4 struct{ m map[T4]int } // ERROR "invalid map key"
27 type _ map[T4]int // GC_ERROR "invalid map key"