mirror of
https://github.com/golang/go
synced 2024-11-15 05:50:37 -07:00
8343980c70
Fixes #20027 Change-Id: Ia616d43c0affa7b927ddfb53755072c94ba27917 Reviewed-on: https://go-review.googlesource.com/c/go/+/612618 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Tim King <taking@google.com>
14 lines
489 B
Go
14 lines
489 B
Go
// errorcheck
|
|
|
|
// Copyright 2024 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.
|
|
|
|
package p
|
|
|
|
var _ chan [0x2FFFF]byte // ERROR "channel element type too large"
|
|
var _ = make(chan [0x2FFFF]byte) // ERROR "channel element type too large"
|
|
|
|
var c1 chan [0x2FFFF]byte // ERROR "channel element type too large"
|
|
var c2 = make(chan [0x2FFFF]byte) // ERROR "channel element type too large"
|