Cat { name: ~str, weight: f64 }
}
-let mut a: Animal = Dog(~"Cocoa", 37.2);
-a = Cat{ name: ~"Spotty", weight: 2.7 };
+let mut a: Animal = Dog("Cocoa".to_owned(), 37.2);
+a = Cat{ name: "Spotty".to_owned(), weight: 2.7 };
~~~~
In this example, `Cat` is a _struct-like enum variant_,
procedure:
```rust
-let string = ~"Hello";
+let string = "Hello".to_owned();
// Creates a new procedure, passing it to the `spawn` function.
spawn(proc() {