类型要满足约束 `interface { ~string; IsValid() bool }`,必须具备什么条件?

来自 约束与类型集
Go 1.27 进阶 1分钟

类型要满足约束 `interface { ~string; IsValid() bool }`,必须具备什么条件?

报告错误