1 // errchk $G -e $D/$F.go
3 // Copyright 2009 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.
28 var x, y [2]sync.Mutex
38 x := sync.Mutex{0, 0} // ERROR "assignment.*Mutex"
42 x := sync.Mutex{key: 0} // ERROR "(unknown|assignment).*Mutex"
46 x := &sync.Mutex{} // ok
47 var y sync.Mutex // ok