]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/autoref-intermediate-types-issue-3585.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / autoref-intermediate-types-issue-3585.rs
index e9c57c2d7b02306c305f2760a7380565cf6b0a59..ca11fb355c0007e7aefbb2639c934a58b9772c10 100644 (file)
@@ -28,5 +28,5 @@ fn foo(&self) -> ~str {
 
 pub fn main() {
     let x = @3u;
-    assert_eq!(x.foo(), ~"@3");
+    assert_eq!(x.foo(), "@3".to_owned());
 }