Skip to content

Commit 87c903a

Browse files
committed
Fix test failure in the reference
1 parent a93c8b6 commit 87c903a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/reference.md

+5
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,11 @@ implementations for every method, but it must specify the type `E`. Here's
14051405
an implementation of `Container` for the standard library type `Vec`:
14061406

14071407
```
1408+
# trait Container {
1409+
# type E;
1410+
# fn empty() -> Self;
1411+
# fn insert(&mut self, Self::E);
1412+
# }
14081413
impl<T> Container for Vec<T> {
14091414
type E = T;
14101415
fn empty() -> Vec<T> { Vec::new() }

0 commit comments

Comments
 (0)