about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/rc.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 15debf2683d..26eb8bbe0e1 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -839,9 +839,11 @@ impl<T> Weak<T> {
     /// # Examples
     ///
     /// ```
+    /// #![feature(downgraded_weak)]
+    ///
     /// use std::rc::Weak;
     ///
-    /// let five = Weak::new_downgraded();
+    /// let empty:Weak<i64> = Weak::new_downgraded();
     /// ```
 
     #[unstable(feature = "downgraded_weak",