A Didactic dyn Trait Example
https://gist.github.com/rust-play/83b8b2bde4da2e392c42aab4482394d5 error[E0308]: mismatched types a Vec<T> must have one concrete type Try generics: This works only if all elements are the same concrete type. Generics require: But here: This is runtime polymorphism, not compile-time polymorphism. But our problem is: We want different concrete types in the same collection. Generics cannot express: “Many types, same interface, […]