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
commitf88458ce17a98fcb07d53a0d0722ef771fa0bfa1 (patch)
treec8dc32b7068431dee1b5aea1b515aafd627e2ee3 /test/complit1.go
parent09f4800c1d3fe35ecf920533a39f6eb8d33ce8ff (diff)
downloadgo-f88458ce17a98fcb07d53a0d0722ef771fa0bfa1.tar.gz
gc: remove type elision in struct literals
R=ken2 CC=golang-dev http://codereview.appspot.com/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 f4f7311af..aaf701f73 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"
)