3 ms·
This is not a trait object, and so that part of the reference is irrelevant. Here's that example working: https://play.rust-lang.org/?version=stable&mode=debug
by steveklabnik 6y ago
This is not a trait object, and so that part of the reference is irrelevant.
Here's that example working: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=745c3742eefd594ca988f77d87c540cd https://play.rust-lang.org/?version=stable&mode=debug&editio...
I am not entirely sure that it answers your point though; what you want is trait A or trait B, not both, right?
- Tuna-Fish 6y agoAh sorry, no, what I want is specifically a trait object that satisfies both trait A and B.
- steveklabnik 6y agoYes, in that case you are 100% right, your parent didn't provide an actual solution.