about summary refs log tree commit diff
path: root/src/liballoc/tests/lib.rs
diff options
context:
space:
mode:
authorMurarth <murarth@gmail.com>2017-07-26 15:09:32 -0700
committerMurarth <murarth@gmail.com>2017-08-14 20:42:26 -0700
commit618ac89d256adca97518742db2ad2759c4f5fc72 (patch)
treeee0c3f861bf2c64d78d5205c54a7273b2bdc9b39 /src/liballoc/tests/lib.rs
parent599be0d18f4c6ddf36366d2a5a2ca6dc65886896 (diff)
downloadrust-618ac89d256adca97518742db2ad2759c4f5fc72.tar.gz
rust-618ac89d256adca97518742db2ad2759c4f5fc72.zip
Add method `String::retain`
Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool`
and reducing the string to only characters for which the predicate
returns `true`.
Diffstat (limited to 'src/liballoc/tests/lib.rs')
-rw-r--r--src/liballoc/tests/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs
index c6d70ee7575..d4f3a89ee99 100644
--- a/src/liballoc/tests/lib.rs
+++ b/src/liballoc/tests/lib.rs
@@ -26,6 +26,7 @@
 #![feature(splice)]
 #![feature(str_checked_slicing)]
 #![feature(str_escape)]
+#![feature(string_retain)]
 #![feature(test)]
 #![feature(unboxed_closures)]
 #![feature(unicode)]