about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEvgeny Safronov <division494@gmail.com>2017-04-08 19:37:46 +0300
committerEvgeny Safronov <division494@gmail.com>2017-04-14 09:46:03 +0300
commit4cb9de48fbf3e616d80bb6726ce590e06c763a1e (patch)
tree192ce898569d3de0c1c64d82ff4e2494f610f035
parent5a09d7c3de6cc5daf1b9925a8e7d19edf44c27a7 (diff)
downloadrust-4cb9de48fbf3e616d80bb6726ce590e06c763a1e.tar.gz
rust-4cb9de48fbf3e616d80bb6726ce590e06c763a1e.zip
fix: add feature to doc tests
-rw-r--r--src/libcollections/string.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index 12f582404dc..6da4cc1c713 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -1410,6 +1410,7 @@ impl FromUtf8Error {
     /// Basic usage:
     ///
     /// ```
+    /// #![feature(from_utf8_error_as_bytes)]
     /// // some invalid bytes, in a vector
     /// let bytes = vec![0, 159];
     ///