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.
7 // Verify simple assignment errors are caught by the compiler.
31 var x, y [2]sync.Mutex
41 x := sync.Mutex{0, 0} // ERROR "assignment.*Mutex"
45 x := sync.Mutex{key: 0} // ERROR "(unknown|assignment).*Mutex"
49 x := &sync.Mutex{} // ok
50 var y sync.Mutex // ok