diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs index 59220b320918b..2590fa6023a53 100644 --- a/src/libcore/iter/sources.rs +++ b/src/libcore/iter/sources.rs @@ -461,6 +461,8 @@ unsafe impl A> TrustedLen for OnceWith {} /// `.foorc`: /// /// ```no_run +/// #![feature(iter_once_with)] +/// /// use std::iter; /// use std::fs; /// use std::path::PathBuf;