about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Hörnvall <trolledwoods@gmail.com>2021-02-27 13:33:55 +0100
committerJohn Hörnvall <trolledwoods@gmail.com>2021-02-27 13:33:55 +0100
commit907eab8e62d44b262a224eb3f5f6f70d5737ff15 (patch)
tree2386dabba22ac38dbf7b70a071cbeacf611a4291
parent772543aeff475bd96b2de17a7b245a0eb62ca6d8 (diff)
downloadrust-907eab8e62d44b262a224eb3f5f6f70d5737ff15.tar.gz
rust-907eab8e62d44b262a224eb3f5f6f70d5737ff15.zip
Added feature flag to doc test
-rw-r--r--library/core/src/str/iter.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/str/iter.rs b/library/core/src/str/iter.rs
index 642da2d2170..b6502d192fb 100644
--- a/library/core/src/str/iter.rs
+++ b/library/core/src/str/iter.rs
@@ -196,6 +196,7 @@ impl<'a> CharIndices<'a> {
     /// # Examples
     ///
     /// ```
+    /// #![feature(char_indices_offset)]
     /// let mut chars = "a楽".char_indices();
     ///
     /// assert_eq!(chars.offset(), 0);