COBCH2314 Attribute <attrib-name> not allowed on generic parameter

The specified attribute cannot be used on generic parameter.

The attribute cannot be used in the context specified by the error message.