Skip to content

Commit 8b6122f

Browse files
committed
Add feature gate to doctests.
1 parent ad170f2 commit 8b6122f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/net/ip.rs

+4
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ impl Ipv4Addr {
347347
/// # Examples
348348
///
349349
/// ```
350+
/// #![feature(ip)]
350351
/// use std::net::Ipv4Addr;
351352
///
352353
/// let addr = Ipv4Addr::localhost();
@@ -361,6 +362,7 @@ impl Ipv4Addr {
361362
/// # Examples
362363
///
363364
/// ```
365+
/// #![feature(ip)]
364366
/// use std::net::Ipv4Addr;
365367
///
366368
/// let addr = Ipv4Addr::unspecified();
@@ -821,6 +823,7 @@ impl Ipv6Addr {
821823
/// # Examples
822824
///
823825
/// ```
826+
/// #![feature(ip)]
824827
/// use std::net::Ipv6Addr;
825828
///
826829
/// let addr = Ipv6Addr::localhost();
@@ -835,6 +838,7 @@ impl Ipv6Addr {
835838
/// # Examples
836839
///
837840
/// ```
841+
/// #![feature(ip)]
838842
/// use std::net::Ipv6Addr;
839843
///
840844
/// let addr = Ipv6Addr::unspecified();

0 commit comments

Comments
 (0)