about summary refs log tree commit diff
path: root/src/test/run-pass/expr-if-box.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-if-box.rs')
-rw-r--r--src/test/run-pass/expr-if-box.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/expr-if-box.rs b/src/test/run-pass/expr-if-box.rs
index 5bef5d24bcb..78e2d3caea9 100644
--- a/src/test/run-pass/expr-if-box.rs
+++ b/src/test/run-pass/expr-if-box.rs
@@ -17,8 +17,8 @@ fn test_box() {
 }
 
 fn test_str() {
-    let rs = if true { ~"happy" } else { ~"sad" };
-    assert_eq!(rs, ~"happy");
+    let rs = if true { "happy".to_owned() } else { "sad".to_owned() };
+    assert_eq!(rs, "happy".to_owned());
 }
 
 pub fn main() { test_box(); test_str(); }