Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0701
'{0}' is not a valid constraint. A type used as a constraint must be an interface, a non-sealed class or a type parameter.