aboutsummaryrefslogtreecommitdiff
path: root/src/constraints
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2021-11-14 21:13:27 -0800
committerRobert Griesemer <gri@golang.org>2021-11-15 21:22:19 +0000
commit95e85e31089523447aadb7670715c4d3383cc4ee (patch)
treedf0c1d2feec850c10385f67caa996a5d744f51e9 /src/constraints
parentc8d7c5fe0511569f19d4ebed29f11d96f50b3e07 (diff)
downloadgo-95e85e31089523447aadb7670715c4d3383cc4ee.tar.gz
go-95e85e31089523447aadb7670715c4d3383cc4ee.zip
cmd/compile/internal/types2: use "implements" rather than "satisfies" in error messages
Type constraint satisfaction is interface implementation. Adjusted a few error messages. Change-Id: I4266af78e83131a76b1e3e44c847a21de760ac6e Reviewed-on: https://go-review.googlesource.com/c/go/+/363839 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 'src/constraints')
-rw-r--r--src/constraints/constraints_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constraints/constraints_test.go b/src/constraints/constraints_test.go
index 538dc843cc..47d4cba52a 100644
--- a/src/constraints/constraints_test.go
+++ b/src/constraints/constraints_test.go
@@ -105,7 +105,7 @@ func TestFailure(t *testing.T) {
t.Error("build succeeded, but expected to fail")
} else if len(out) > 0 {
t.Logf("%s", out)
- const want = "does not satisfy"
+ const want = "does not implement"
if !bytes.Contains(out, []byte(want)) {
t.Errorf("output does not include %q", want)
}