mirror of
https://github.com/golang/go
synced 2024-11-26 21:51:44 -07:00
f412bd31ce
Minimally invasive; fixes a regression from 1.7. Fixes #18459. Change-Id: I93b3b5c05706eaff8ae97a237f770838c1f8778c Reviewed-on: https://go-review.googlesource.com/34721 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
14 lines
332 B
Go
14 lines
332 B
Go
// errorcheck
|
|
|
|
// Copyright 2016 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Verify that we have a line number for this error.
|
|
|
|
package main
|
|
|
|
//go:nowritebarrier // ERROR "go:nowritebarrier only allowed in runtime"
|
|
func main() {
|
|
}
|