]> git.lizzy.rs Git - rust.git/commitdiff
Fix test failure in the reference
authorSteve Klabnik <steve@steveklabnik.com>
Wed, 13 May 2015 21:53:57 +0000 (17:53 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Wed, 13 May 2015 21:53:57 +0000 (17:53 -0400)
src/doc/reference.md

index 764468761607aa7aed5b3794ce3d26f2e21efbb1..7d3cf64e9f031936964bce654be7a7ddf5635fed 100644 (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() }