]> 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 01a31ebf3337bf881d2b3b44bc7364c4dcc68d78..b0cd9e60ed70b07c708eebc1a8a80e49f1b27db1 100644 (file)
 
 
 
-// -*- rust -*-
 
 // Issue #50.
 
 struct X { foo: ~str, bar: ~str }
 
 pub fn main() {
-    let x = X {foo: ~"hello", bar: ~"world"};
-    info!(x.foo.clone());
-    info!(x.bar.clone());
+    let x = X {foo: "hello".to_owned(), bar: "world".to_owned()};
+    println!("{}", x.foo.clone());
+    println!("{}", x.bar.clone());
 }