What must a type satisfy for the constraint `interface { ~string; IsValid() bool }`?

from Constraints and type sets
Go 1.27 intermediate 1 min

What must a type satisfy for the constraint `interface { ~string; IsValid() bool }`?

Report an error