diff options
| author | John Hörnvall <trolledwoods@gmail.com> | 2021-02-27 13:33:55 +0100 |
|---|---|---|
| committer | John Hörnvall <trolledwoods@gmail.com> | 2021-02-27 13:33:55 +0100 |
| commit | 907eab8e62d44b262a224eb3f5f6f70d5737ff15 (patch) | |
| tree | 2386dabba22ac38dbf7b70a071cbeacf611a4291 | |
| parent | 772543aeff475bd96b2de17a7b245a0eb62ca6d8 (diff) | |
| download | rust-907eab8e62d44b262a224eb3f5f6f70d5737ff15.tar.gz rust-907eab8e62d44b262a224eb3f5f6f70d5737ff15.zip | |
Added feature flag to doc test
| -rw-r--r-- | library/core/src/str/iter.rs | 1 |
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); |
