Fix test failure in the reference

This commit is contained in:
Steve Klabnik 2015-05-13 17:53:57 -04:00
parent a93c8b655f
commit 87c903a95c

View File

@ -1405,6 +1405,11 @@ implementations for every method, but it must specify the type `E`. Here's
an implementation of `Container` for the standard library type `Vec`:
```
# trait Container {
# type E;
# fn empty() -> Self;
# fn insert(&mut self, Self::E);
# }
impl<T> Container for Vec<T> {
type E = T;
fn empty() -> Vec<T> { Vec::new() }