You currently have to use Into
, as in your "workaround". The Rust compiler doesn't currently understand that a trait bound should imply other bounds unless those bounds have Self
as the left side (or, equivalently, are written with "supertrait" syntax). I think this is the issue for that:
2 Likes