1 // Copyright 2015 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.
14 fmt.Errorf("") // want "result of fmt.Errorf call not used"
17 errors.New("") // want "result of errors.New call not used"
20 err.Error() // want `result of \(error\).Error call not used`
23 buf.String() // want `result of \(bytes.Buffer\).String call not used`
25 fmt.Sprint("") // want "result of fmt.Sprint call not used"
26 fmt.Sprintf("") // want "result of fmt.Sprintf call not used"