Sign in
go
/
gofrontend
/
582392b80c07bd7e830e177b775dc4ef802b5fd6
/
.
/
libgo
/
go
/
cmd
/
vet
/
testdata
/
src
/
copylock
/
copylock.go
blob: 8079cf3248b785afbcf7b1097e509047e48c0a56 [
file
] [
log
] [
blame
]
package copylock
import "sync"
func BadFunc() {
var x *sync.Mutex
p := x
var y sync.Mutex
p = &y
*p = *x
// ERROR "assignment copies lock value to \*p: sync.Mutex"
}