blob: 292a6a3a7763532548868c3f1c4fb04979d78c55 [file] [log] [blame]
// 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.
package issue45985
func app[S interface{ ~[]T }, T any](s S, e T) S {
return append(s, e)
}
func _() {
_ = app /* ERROR "cannot infer T" */ [int]
}