Add #![feature] attributes to doctests

This commit is contained in:
Brian Anderson
2015-03-13 15:28:35 -07:00
parent df290f127e
commit e9019101a8
107 changed files with 649 additions and 22 deletions

View File

@@ -48,6 +48,7 @@ use mem;
/// # Examples
///
/// ```
/// # #![feature(core)]
/// use std::raw::{self, Repr};
///
/// let slice: &[u16] = &[1, 2, 3, 4];
@@ -106,6 +107,7 @@ pub struct Closure {
/// # Examples
///
/// ```
/// # #![feature(core)]
/// use std::mem;
/// use std::raw;
///