gopkg.in/golangci/golangci-lint.v1@v1.10.1/test/testdata/ineffassign.go (about) 1 // args: -Eineffassign 2 package testdata 3 4 func _() { 5 x := 0 6 for { 7 _ = x 8 x = 0 // ERROR "ineffectual assignment to `x`" 9 x = 0 10 } 11 }