1// errorcheck -d=panic 2 3// Copyright 2020 The Go Authors. All rights reserved. 4// Use of this source code is governed by a BSD-style 5// license that can be found in the LICENSE file. 6 7package main 8 9import "bytes" 10 11type _ struct{ bytes.nonexist } // ERROR "unexported|undefined" 12 13type _ interface{ bytes.nonexist } // ERROR "unexported|undefined|expected signature or type name" 14 15func main() { 16 var _ bytes.Buffer 17 var _ bytes.buffer // ERROR "unexported|undefined" 18} 19