diff options
author | Robert Griesemer <gri@golang.org> | 2020-12-03 18:15:50 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2020-12-04 21:22:23 +0000 |
commit | 02820d61a9d0027140e6da567323e0822d513358 (patch) | |
tree | c33275be0a2845d9d316f1e0f5cd69a55fdada86 /test/copy1.go | |
parent | 9ff27e9fad185338b09141886b1041b82478b2d6 (diff) | |
download | go-02820d61a9d0027140e6da567323e0822d513358.tar.gz go-02820d61a9d0027140e6da567323e0822d513358.zip |
[dev.typeparams] test: enable some more errorcheck tests
Change-Id: I103e3eeacd5b11efd63c965482a626878ba5ac81
Reviewed-on: https://go-review.googlesource.com/c/go/+/275216
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'test/copy1.go')
-rw-r--r-- | test/copy1.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/copy1.go b/test/copy1.go index e1fa105584..c0760f7190 100644 --- a/test/copy1.go +++ b/test/copy1.go @@ -17,11 +17,11 @@ func main() { _ = copy() // ERROR "not enough arguments" _ = copy(1, 2, 3) // ERROR "too many arguments" - _ = copy(si, "hi") // ERROR "have different element types.*int.*string" + _ = copy(si, "hi") // ERROR "have different element types(.*int.*string| int and byte)" _ = copy(si, sf) // ERROR "have different element types.*int.*float64" - _ = copy(1, 2) // ERROR "must be slices; have int, int" - _ = copy(1, si) // ERROR "first argument to copy should be" - _ = copy(si, 2) // ERROR "second argument to copy should be" + _ = copy(1, 2) // ERROR "must be slices; have int, int|expects slice arguments" + _ = copy(1, si) // ERROR "first argument to copy should be|expects slice arguments" + _ = copy(si, 2) // ERROR "second argument to copy should be|expects slice arguments" } |