More container types support trait objects

In Rust 1.0, only certain, special types could be used to create traitobjects.
With Rust 1.2, that restriction was lifted, and more types became able to do this. For example,Rc<T>, one of Rust's reference-counted types:
1. use std::rc::Rc;
3. trait Foo {}
5. impl Foo for i32 {
7. }
9. fn main() {
10. let obj: Rc<dyn Foo> = Rc::new(5);
11. }
This code would not work with Rust 1.0, but now works.
If you haven't seen the
dynsyntax before, see the section onit. For versions that do not support it, replaceRc<dyn Foo>withRc<Foo>.
