aboutsummaryrefslogtreecommitdiff
path: root/test/inline.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2020-09-14 19:24:55 -0700
committerMatthew Dempsky <mdempsky@google.com>2020-09-15 02:52:12 +0000
commitbae9cf651796db898b1e4bd77a1a47c5f2d7b04d (patch)
tree42d4f9f7bc51a271f4746b7239266c4b3a5cd2f0 /test/inline.go
parentd20298e1c7d1df794a11ce7768e027c6759df2a4 (diff)
downloadgo-bae9cf651796db898b1e4bd77a1a47c5f2d7b04d.tar.gz
go-bae9cf651796db898b1e4bd77a1a47c5f2d7b04d.zip
test: fix inline.go to pass linux-amd64-noopt
Updates #33485. Change-Id: I3330860cdff1e9797466a7630bcdb7792c465b06 Reviewed-on: https://go-review.googlesource.com/c/go/+/254938 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'test/inline.go')
-rw-r--r--test/inline.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/inline.go b/test/inline.go
index 1c5c1bc8d3..3edcf2edfd 100644
--- a/test/inline.go
+++ b/test/inline.go
@@ -10,7 +10,6 @@
package foo
import (
- "errors"
"runtime"
"unsafe"
)
@@ -50,7 +49,7 @@ func j(x int) int { // ERROR "can inline j"
}
}
-var somethingWrong error = errors.New("something went wrong") // ERROR "can inline init" "inlining call to errors.New" "errors.errorString.* escapes to heap"
+var somethingWrong error
// local closures can be inlined
func l(x, y int) (int, int, error) {