diff options
Diffstat (limited to 'src/test/run-pass/expr-if-box.rs')
| -rw-r--r-- | src/test/run-pass/expr-if-box.rs | 4 |
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(); } |
