// Copyright 2021 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. // Test cases for error messages produced while parsing code that uses type // parameters, without ParseTypeParams being enabled. package p type List[E any /* ERROR "expected ']', found any" */ ] []E type Pair[L, /* ERROR "unexpected comma" */ R any] struct { Left L Right R } var _ = Pair[int, /* ERROR "expected ']' or ':', found ','" */ string]{}