// Test that calling methods on generic types doesn't cause allocations. func genericSorted[T sort.Interface](data T) bool { … } func TestGenericSorted(t *testing.T) { … } type fooer … type P … var esc … func (p P) foo() { … } func f[T fooer](t T) { … } func TestGenericEscape(t *testing.T) { … }