2013-10-23 03:49:18 -05:00
|
|
|
#[feature(managed_boxes)];
|
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() {
|
2013-03-27 15:53:03 -05:00
|
|
|
let v: ~[int] = ~[ 1, ..5 ];
|
|
|
|
println(v[0].to_str());
|
|
|
|
println(v[1].to_str());
|
|
|
|
println(v[2].to_str());
|
|
|
|
println(v[3].to_str());
|
|
|
|
println(v[4].to_str());
|
|
|
|
let v: @[int] = @[ 2, ..5 ];
|
|
|
|
println(v[0].to_str());
|
|
|
|
println(v[1].to_str());
|
|
|
|
println(v[2].to_str());
|
|
|
|
println(v[3].to_str());
|
|
|
|
println(v[4].to_str());
|
|
|
|
}
|