Source file src/cmd/vet/testdata/scannererr/scannererr.go
1 // Copyright 2026 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 package scannererr 6 7 import ( 8 "bufio" 9 "io" 10 ) 11 12 func _(r io.Reader) { 13 s := bufio.NewScanner(r) // ERROR `bufio.Scanner .* is used in Scan loop at line 14 without final check of s.Err\(\)` 14 for s.Scan() { 15 } 16 } 17