官方 Go 文档中的示例使用大写的类型形参。 此检查遵循类型形参的这种大写规则。
func PrintSlice[t any](s []t) { for _, v := range s{ print(v) } }
类型形参 t 以小写声明,因此将被报告。
t