blob: c486150cb39f24c8a3e8083f28d17d8c46baae52 [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 "S (type int) does not satisfy interface{~[]T}" */ [int] // TODO(gri) better error message
}