// Copyright 2026 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func f[T ~[1]int](T) {} func _() { f({ /* ERROR "missing type in composite literal" */ }) } func g[T any](struct{ f T }) {} func _(x int) { f({ /* ERROR "missing type in composite literal" */ x}) } func h[T any](func(T, int)) {} func _() { h(hArg) } func hArg[T any](int, T) {}