math/big: apply a round of go vet

Change-Id: Ie8310acc783659497e50dfe629f06d655b51d647
Reviewed-on: https://go-review.googlesource.com/5990
Reviewed-by: Alan Donovan <adonovan@google.com>
diff --git a/src/math/big/int_test.go b/src/math/big/int_test.go
index cb8c76b..dff8057 100644
--- a/src/math/big/int_test.go
+++ b/src/math/big/int_test.go
@@ -290,15 +290,6 @@
 	}
 }
 
-var bitsTests = []nat{
-	nil,
-	{0},
-	{1},
-	{0, 1, 2, 3, 4},
-	{4, 3, 2, 1, 0},
-	{4, 3, 2, 1, 0, 0, 0, 0},
-}
-
 func norm(x nat) nat {
 	i := len(x)
 	for i > 0 && x[i-1] == 0 {
@@ -308,7 +299,14 @@
 }
 
 func TestBits(t *testing.T) {
-	for _, test := range bitsTests {
+	for _, test := range []nat{
+		nil,
+		{0},
+		{1},
+		{0, 1, 2, 3, 4},
+		{4, 3, 2, 1, 0},
+		{4, 3, 2, 1, 0, 0, 0, 0},
+	} {
 		var z Int
 		z.neg = true
 		got := z.SetBits(test)
@@ -318,7 +316,7 @@
 		}
 
 		if got.neg {
-			t.Errorf("SetBits(%v): got negative result")
+			t.Errorf("SetBits(%v): got negative result", test)
 		}
 
 		bits := nat(z.Bits())