]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/multitrait.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / compile-fail / multitrait.rs
index b49ee5aab47e639b5da2b633ecf544ed29f767c9..a57e7ebe6a04f3264f2889d7c97e61605eecfaa5 100644 (file)
@@ -14,5 +14,5 @@ struct S {
 
 impl Cmp, ToStr for S { //~ ERROR: expected `{` but found `,`
   fn eq(&&other: S) { false }
-  fn to_str(&self) -> ~str { ~"hi" }
+  fn to_str(&self) -> ~str { "hi".to_owned() }
 }