/// In this test, no foreign traits are derived and /// no foreign types are in the decorated enum. /// /// However, if the two generic parameters are set /// to be equal, the enum will contain variants with /// identical types. It will the be impossible to implement /// the `TryTo` trait and the rust compiler will complain /// accordingly about conflicting implementations. use enum_conversion::prelude::*; struct Local(T); /// Note that /// ``` /// enum Enum { /// F1(Local), /// F2(Local), /// } /// ``` /// would suffer the same problems as `U` could /// be given the type `bool`. #[EnumConversions] enum Enum { F1(Local), F2(Local) } fn main() { }