diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/fixedbugs/issue22794.go | 2 | ||||
-rw-r--r-- | test/fixedbugs/issue25727.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/fixedbugs/issue22794.go b/test/fixedbugs/issue22794.go index 933c83dc5b..fb5873e8e5 100644 --- a/test/fixedbugs/issue22794.go +++ b/test/fixedbugs/issue22794.go @@ -15,7 +15,7 @@ func main() { i1 := it{Floats: true} if i1.floats { // ERROR "(type it .* field or method floats, but does have field Floats)|undefined field or method" } - i2 := &it{floats: false} // ERROR "(but does have field Floats)|unknown field|declared and not used" + i2 := &it{floats: false} // ERROR "cannot refer to unexported field floats in struct literal|unknown field|declared and not used" _ = &it{InneR: "foo"} // ERROR "(but does have field inner)|unknown field" _ = i2 } diff --git a/test/fixedbugs/issue25727.go b/test/fixedbugs/issue25727.go index 06b2e2cac7..27c60a1764 100644 --- a/test/fixedbugs/issue25727.go +++ b/test/fixedbugs/issue25727.go @@ -11,11 +11,11 @@ import "net/http" var s = http.Server{} var _ = s.doneChan // ERROR "s.doneChan undefined .cannot refer to unexported field or method doneChan.$|unexported field or method|s.doneChan undefined" var _ = s.DoneChan // ERROR "s.DoneChan undefined .type http.Server has no field or method DoneChan.$|undefined field or method" -var _ = http.Server{tlsConfig: nil} // ERROR "unknown field tlsConfig in struct literal.+ .but does have TLSConfig.$|unknown field .?tlsConfig.? in .?http.Server|unknown field" +var _ = http.Server{tlsConfig: nil} // ERROR "cannot refer to unexported field tlsConfig in struct literal|unknown field .?tlsConfig.? in .?http.Server|unknown field" var _ = http.Server{DoneChan: nil} // ERROR "unknown field DoneChan in struct literal of type http.Server$|unknown field .?DoneChan.? in .?http.Server" type foo struct { bar int } -var _ = &foo{bAr: 10} // ERROR "unknown field bAr in struct literal.+ .but does have bar.$|unknown field .?bAr.? in .?foo|unknown field" +var _ = &foo{bAr: 10} // ERROR "cannot refer to unexported field bAr in struct literal|unknown field .?bAr.? in .?foo|unknown field" |