error[E0599]: the function or associated item `from_repr` exists for struct `EnumSet`, but its trait bounds were not satisfied --> tests/compile-fail/explicit_repr.rs:15:44 | 4 | enum OkayEnumButCantUseFromRepr { | ------------------------------- | | | doesn't satisfy `<_ as EnumSetTypePrivate>::Repr = ::Repr` | doesn't satisfy `OkayEnumButCantUseFromRepr: EnumSetTypeWithRepr` ... 15 | EnumSet::::from_repr(1); | ^^^^^^^^^ function or associated item cannot be called on `EnumSet` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `OkayEnumButCantUseFromRepr: EnumSetTypeWithRepr` `::Repr = ::Repr` which is required by `OkayEnumButCantUseFromRepr: EnumSetTypeWithRepr` note: the trait `EnumSetTypeWithRepr` must be implemented --> src/traits.rs | | / pub unsafe trait EnumSetTypeWithRepr: | | EnumSetType + EnumSetTypePrivate::Repr> | |________________________________________________________________________________^ error[E0599]: the function or associated item `from_repr` exists for struct `EnumSet`, but its trait bounds were not satisfied --> tests/compile-fail/explicit_repr.rs:16:49 | 10 | enum OkayEnumButCantUseFromReprArray { | ------------------------------------ | | | doesn't satisfy `<_ as EnumSetTypePrivate>::Repr = ::Repr` | doesn't satisfy `_: EnumSetTypeWithRepr` ... 16 | EnumSet::::from_repr([1]); | ^^^^^^^^^ function or associated item cannot be called on `EnumSet` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `OkayEnumButCantUseFromReprArray: EnumSetTypeWithRepr` `::Repr = ::Repr` which is required by `OkayEnumButCantUseFromReprArray: EnumSetTypeWithRepr` note: the trait `EnumSetTypeWithRepr` must be implemented --> src/traits.rs | | / pub unsafe trait EnumSetTypeWithRepr: | | EnumSetType + EnumSetTypePrivate::Repr> | |________________________________________________________________________________^