about summary refs log tree commit diff
path: root/src/libstd/bool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/bool.rs')
-rw-r--r--src/libstd/bool.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/bool.rs b/src/libstd/bool.rs
index 05efa3eab79..5a07c860b5d 100644
--- a/src/libstd/bool.rs
+++ b/src/libstd/bool.rs
@@ -199,6 +199,7 @@ impl Default for bool {
 mod tests {
     use prelude::*;
     use super::to_bit;
+    use str::StrSlice;
 
     #[test]
     fn test_to_bit() {
@@ -268,8 +269,8 @@ mod tests {
 
     #[test]
     fn test_to_str() {
-        assert_eq!(false.to_str(), ~"false");
-        assert_eq!(true.to_str(), ~"true");
+        assert_eq!(false.to_str(), "false".to_owned());
+        assert_eq!(true.to_str(), "true".to_owned());
     }
 
     #[test]