| // Copyright 2009 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| x = y; // ERROR "assignment.*Mutex" |
| x = y; // ERROR "assignment.*Mutex" |
| x = y; // ERROR "assignment.*Mutex" |
| x = y; // ERROR "assignment.*Mutex" |
| x := sync.Mutex{0, 0}; // ERROR "assignment.*Mutex" |
| x := sync.Mutex{key: 0}; // ERROR "(unknown|assignment).*Mutex" |
| x := &sync.Mutex{}; // ok |
| y = *x; // ERROR "assignment.*Mutex" |
| *x = y; // ERROR "assignment.*Mutex" |