diff options
Diffstat (limited to 'test/inline.go')
-rw-r--r-- | test/inline.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/inline.go b/test/inline.go index 0b3ad55d46..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") +var somethingWrong error // local closures can be inlined func l(x, y int) (int, int, error) { |