summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJ. Cliff Dyer <jcd@sdf.org>2017-09-08 17:20:31 -0400
committerJ. Cliff Dyer <jcd@sdf.org>2017-09-08 20:41:09 -0400
commit8b6122f8b8001de80fce59a5896566b31c6a69ff (patch)
treebf78236e047520241aad512e8664fc6472245f9f /src/libstd
parentad170f23397f9da8d2180c4a48981808bf5535c9 (diff)
downloadrust-8b6122f8b8001de80fce59a5896566b31c6a69ff.tar.gz
rust-8b6122f8b8001de80fce59a5896566b31c6a69ff.zip
Add feature gate to doctests.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net/ip.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index a3775d30aa8..d3ea3845f12 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -347,6 +347,7 @@ impl Ipv4Addr {
     /// # Examples
     ///
     /// ```
+    /// #![feature(ip)]
     /// use std::net::Ipv4Addr;
     ///
     /// let addr = Ipv4Addr::localhost();
@@ -361,6 +362,7 @@ impl Ipv4Addr {
     /// # Examples
     ///
     /// ```
+    /// #![feature(ip)]
     /// use std::net::Ipv4Addr;
     ///
     /// let addr = Ipv4Addr::unspecified();
@@ -821,6 +823,7 @@ impl Ipv6Addr {
     /// # Examples
     ///
     /// ```
+    /// #![feature(ip)]
     /// use std::net::Ipv6Addr;
     ///
     /// let addr = Ipv6Addr::localhost();
@@ -835,6 +838,7 @@ impl Ipv6Addr {
     /// # Examples
     ///
     /// ```
+    /// #![feature(ip)]
     /// use std::net::Ipv6Addr;
     ///
     /// let addr = Ipv6Addr::unspecified();