diff options
author | Robert Griesemer <gri@golang.org> | 2021-11-14 21:13:27 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2021-11-15 21:22:19 +0000 |
commit | 95e85e31089523447aadb7670715c4d3383cc4ee (patch) | |
tree | df0c1d2feec850c10385f67caa996a5d744f51e9 /src/constraints | |
parent | c8d7c5fe0511569f19d4ebed29f11d96f50b3e07 (diff) | |
download | go-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.go | 2 |
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) } |