Skip to content

Commit bae9cf6

Browse files
committed
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 <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Matthew Dempsky <[email protected]>
1 parent d20298e commit bae9cf6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/inline.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
package foo
1111

1212
import (
13-
"errors"
1413
"runtime"
1514
"unsafe"
1615
)
@@ -50,7 +49,7 @@ func j(x int) int { // ERROR "can inline j"
5049
}
5150
}
5251

53-
var somethingWrong error = errors.New("something went wrong") // ERROR "can inline init" "inlining call to errors.New" "errors.errorString.* escapes to heap"
52+
var somethingWrong error
5453

5554
// local closures can be inlined
5655
func l(x, y int) (int, int, error) {

0 commit comments

Comments
 (0)