Show appropriate feature flags in docs

This commit is contained in:
Steve Klabnik
2015-07-27 10:50:19 -04:00
parent d019a49ac8
commit ba5fcb726f
47 changed files with 419 additions and 214 deletions

View File

@@ -49,7 +49,8 @@ use mem;
/// # Examples
///
/// ```
/// # #![feature(raw)]
/// #![feature(raw)]
///
/// use std::raw::{self, Repr};
///
/// let slice: &[u16] = &[1, 2, 3, 4];
@@ -98,7 +99,8 @@ impl<T> Clone for Slice<T> {
/// # Examples
///
/// ```
/// # #![feature(raw)]
/// #![feature(raw)]
///
/// use std::mem;
/// use std::raw;
///