summaryrefslogtreecommitdiff
path: root/test/complit1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-12-05 14:22:41 -0500
committerRuss Cox <rsc@golang.org>2011-12-05 14:22:41 -0500
commit5cb1c82d961a1b2e70b34492e51cc42292913781 (patch)
tree6bf91da8f57c35aa353b2b3da71db6f44dbb17c9 /test/complit1.go
parent98553f1422392f135989e0daafab352b66c561c2 (diff)
downloadgo-git-5cb1c82d961a1b2e70b34492e51cc42292913781.tar.gz
gc: remove type elision in struct literals
R=ken2 CC=golang-dev https://golang.org/cl/5437136
Diffstat (limited to 'test/complit1.go')
-rw-r--r--test/complit1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/complit1.go b/test/complit1.go
index f4f7311af3..aaf701f73f 100644
--- a/test/complit1.go
+++ b/test/complit1.go
@@ -34,6 +34,6 @@ type T struct {
var (
_ = &T{0, 0, "", nil} // ok
- _ = &T{i: 0, f: 0, s: "", next: {}} // ok
+ _ = &T{i: 0, f: 0, s: "", next: {}} // ERROR "missing type in composite literal"
_ = &T{0, 0, "", {}} // ERROR "missing type in composite literal"
)