X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=enumset%2Ftests%2Fcompile-fail%2Fvariants.stderr;fp=enumset%2Ftests%2Fcompile-fail%2Fvariants.stderr;h=d243048b9263140c749ec8bef25016792a81cfcc;hb=2c463c3e3ce1e56f91cdd7bc5790dce3c05888e7;hp=51dbd146fefe829b9c6d6c7f48bdf4d3d6f62115;hpb=ba3203289f3c64bdd8b35281b685efdd6ac52c10;p=enumset.git diff --git a/enumset/tests/compile-fail/variants.stderr b/enumset/tests/compile-fail/variants.stderr index 51dbd14..d243048 100644 --- a/enumset/tests/compile-fail/variants.stderr +++ b/enumset/tests/compile-fail/variants.stderr @@ -64,6 +64,12 @@ note: required by a bound in `enumset::EnumSet::::from_repr` | where T: EnumSetTypeWithRepr { | ^^^^^^^^^^^^^^^^^^^ required by this bound in `enumset::EnumSet::::from_repr` +error[E0277]: the trait bound `OkayEnumButCantUseFromRepr: EnumSetTypeWithRepr` is not satisfied + --> tests/compile-fail/variants.rs:64:5 + | +64 | EnumSet::::from_repr(1); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `EnumSetTypeWithRepr` is not implemented for `OkayEnumButCantUseFromRepr` + error[E0277]: the trait bound `OkayEnumButCantUseFromRepr: EnumSetTypeWithRepr` is not satisfied --> tests/compile-fail/variants.rs:64:54 |