]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/rec-auto.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / rec-auto.rs
index 7dd13001de4eb2668be03262a63a4726b9516b73..b0cd9e60ed70b07c708eebc1a8a80e49f1b27db1 100644 (file)
 
 
 
-// -*- rust -*-
 
 // Issue #50.
 
 struct X { foo: ~str, bar: ~str }
 
 pub fn main() {
-    let x = X {foo: ~"hello", bar: ~"world"};
-    log(debug, copy x.foo);
-    log(debug, copy x.bar);
+    let x = X {foo: "hello".to_owned(), bar: "world".to_owned()};
+    println!("{}", x.foo.clone());
+    println!("{}", x.bar.clone());
 }