Stabilized Trait Upcasting does not work with borrows

Thanks for the solution. Mimicking this with static dispatch seems suitable for the use case. A blanket implementation can make this even shorter: impl <T: A + ?Sized> A for Box<T> { ... } etc..

1 Like