blob: e86c038a10468bce44f091844369b07cf412473a [file] [log] [blame]
Dan Willemsenbc60c3c2021-12-15 01:09:00 -08001// errorcheck
2
3// Copyright 2021 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7// Reported by Cuong Manh Le.
8
9package p
10
11type a struct{}
12
13//go:notinheap
14type b a
15
16var _ = (*b)(new(a)) // ERROR "cannot convert"