mirror of
https://github.com/golang/go
synced 2024-11-23 14:30:02 -07:00
b32209d22d
For #48301. Change-Id: Ie5f57dcce86773c06c5140abf13a6cfff79eb323 Reviewed-on: https://go-review.googlesource.com/c/go/+/348743 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org>
14 lines
304 B
Go
14 lines
304 B
Go
// errorcheck -G=0
|
|
|
|
// Copyright 2021 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.
|
|
|
|
// Don't crash while reporting the error.
|
|
|
|
package p
|
|
|
|
func _() {
|
|
type T = T // ERROR "T uses T|invalid recursive type T"
|
|
}
|