mirror of
https://github.com/golang/go
synced 2024-11-27 02:31:18 -07:00
c1363b2d91
Also: Remove double "go:" prefix in related error message. Fixes #18882. Change-Id: Ifbbd8e2f7529b43f035d3dbf7ca4a91f212bc6b6 Reviewed-on: https://go-review.googlesource.com/36121 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
14 lines
334 B
Go
14 lines
334 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() {
|
|
}
|