From 907eab8e62d44b262a224eb3f5f6f70d5737ff15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6rnvall?= Date: Sat, 27 Feb 2021 13:33:55 +0100 Subject: [PATCH] Added feature flag to doc test --- library/core/src/str/iter.rs | 1 + 1 file changed, 1 insertion(+) 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);