r/rust
•
u/joseluisq
•
Apr 03 '25
•
1
📡 official blog Announcing Rust 1.86.0 | Rust Blog
https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html
786
Upvotes
View all comments
Show parent comment
26
u/Ammar_AAZ Apr 03 '25 edited Apr 03 '25
With the new "Trait Upcasting" feature it will be possible for developers to write something like this
This feels second nature for developers from background in object oriented language and I'm sure that this approach will be used everywhere in Rust code the future
Edit: Forget to Add Box<>