2012-04-03 20:11:59 -05:00
|
|
|
fn main() {
|
2012-07-14 00:57:48 -05:00
|
|
|
let x : ~str = ~"hello";
|
|
|
|
let _y : ~str = ~"there";
|
|
|
|
let mut z = ~"thing";
|
2012-04-16 18:17:51 -05:00
|
|
|
z = x;
|
|
|
|
assert z[0] == ('h' as u8);
|
|
|
|
assert z[4] == ('o' as u8);
|
2012-04-03 20:11:59 -05:00
|
|
|
}
|