#![allow(dead_assignment)]
pub fn main() {
- let x : ~str = ~"hello";
- let _y : ~str = ~"there";
- let mut z = ~"thing";
+ let x : ~str = "hello".to_owned();
+ let _y : ~str = "there".to_owned();
+ let mut z = "thing".to_owned();
z = x;
assert_eq!(z[0], ('h' as u8));
assert_eq!(z[4], ('o' as u8));