...

Source file src/cmd/vet/testdata/appends/appends.go

Documentation: cmd/vet/testdata/appends

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file contains tests for the appends checker.
     6  
     7  package appends
     8  
     9  func AppendsTest() {
    10  	sli := []string{"a", "b", "c"}
    11  	sli = append(sli) // ERROR "append with no values"
    12  }
    13  

View as plain text