-// -*- rust -*-
// Issue #50.
struct X { foo: ~str, bar: ~str }
pub fn main() {
- let x = X {foo: ~"hello", bar: ~"world"};
- debug!(x.foo.clone());
- debug!(x.bar.clone());
+ let x = X {foo: "hello".to_owned(), bar: "world".to_owned()};
+ println!("{}", x.foo.clone());
+ println!("{}", x.bar.clone());
}