39
Announcing async fn and return-position impl Trait in traits
(blog.rust-lang.org)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
That's a bummer. This works:
So it seems like returning an
impl Child
in a trait that bindsimpl Base
should also work.Hopefully this change means we'll see more of this kind of thing in the upcoming releases.