pub trait Val: Any + Eq {}
For context, I have some code that works as I expect that makes use of an Arc<dyn Any>. However, I need to add the further constraint that I can use == for equality. Naively adding Arc<dyn Any + Eq> complains:
only auto traits can be used as additional traits in a trait object
consider creating a new trait with all of these as supertraits and using that trait here instead: `trait NewTrait: Eq + Any {}`
Thus, I created Val and ran into the above error.
Thank you.