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.
19 x = y; // ERROR "assignment.*Mutex"
24 x = y; // ERROR "assignment.*Mutex"
28 var x, y [2]sync.Mutex;
29 x = y; // ERROR "assignment.*Mutex"
34 x = y; // ERROR "assignment.*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
48 y = *x; // ERROR "assignment.*Mutex"
49 *x = y; // ERROR "assignment.*Mutex"