diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 0ce7339451bb0..0b0d04b6f9d12 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -735,6 +735,8 @@ impl Vec { /// # Examples /// /// ``` + /// # #![feature(collections)] + /// /// // Draining using `..` clears the whole vector. /// let mut v = vec![1, 2, 3]; /// let u: Vec<_> = v.drain(..).collect();