Ludovic Fernandez f9d815115c
bump golang.org/x/tools to HEAD (#2875)
* bump golang.org/x/tools to HEAD
* fix: adapt linters to the new validation system.
2022-05-23 12:39:57 +02:00

12 lines
204 B
Go

// args: -Eprealloc
package testdata
func Prealloc(source []int) []int {
var dest []int // ERROR "Consider pre-allocating `dest`"
for _, v := range source {
dest = append(dest, v)
}
return dest
}