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.
7 // Testing composite literal for a type param constrained to be a struct or a map.
12 ~struct{ b1, b2 string }
22 func f2[T ~struct{ b1, b2 string }]() T {
33 type S map[string]string
44 func g2[T map[string]string]() T {