diff --git a/go/analysis/passes/errorsas/testdata/src/typeparams/typeparams.go b/go/analysis/passes/errorsas/testdata/src/typeparams/typeparams.go index 5b9ec457cf..4f7ae8491a 100644 --- a/go/analysis/passes/errorsas/testdata/src/typeparams/typeparams.go +++ b/go/analysis/passes/errorsas/testdata/src/typeparams/typeparams.go @@ -28,7 +28,7 @@ func _[E error](e E) { errors.As(nil, &e) errors.As(nil, &m) // *T where T implemements error errors.As(nil, &tw.t) // *T where T implements error - errors.As(nil, perr[error]()) // *error, via a call + errors.As(nil, perr[error]()) // want `second argument to errors.As should not be \*error` errors.As(nil, e) // want `second argument to errors.As must be a non-nil pointer to either a type that implements error, or to any interface type` errors.As(nil, m) // want `second argument to errors.As must be a non-nil pointer to either a type that implements error, or to any interface type`