aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue30087.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue30087.go')
-rw-r--r--test/fixedbugs/issue30087.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fixedbugs/issue30087.go b/test/fixedbugs/issue30087.go
index dc12364d80..3ad9c8c8d9 100644
--- a/test/fixedbugs/issue30087.go
+++ b/test/fixedbugs/issue30087.go
@@ -7,8 +7,8 @@
package main
func main() {
- var a, b = 1 // ERROR "assignment mismatch: 2 variables but 1 values"
- _ = 1, 2 // ERROR "assignment mismatch: 1 variables but 2 values"
- c, d := 1 // ERROR "assignment mismatch: 2 variables but 1 values"
- e, f := 1, 2, 3 // ERROR "assignment mismatch: 2 variables but 3 values"
+ var a, b = 1 // ERROR "assignment mismatch: 2 variables but 1 values|wrong number of initializations"
+ _ = 1, 2 // ERROR "assignment mismatch: 1 variables but 2 values|number of variables does not match"
+ c, d := 1 // ERROR "assignment mismatch: 2 variables but 1 values|wrong number of initializations"
+ e, f := 1, 2, 3 // ERROR "assignment mismatch: 2 variables but 3 values|wrong number of initializations"
}