rust/src/test/run-pass/expr-repeat-vstore.rs
Alex Crichton 30862a64c2 Fix run-pass tests to have 'pub fn main'
This is required by the check-fast target because each test is slurped up into a
submodule.
2013-09-25 00:43:37 -07:00

23 lines
578 B
Rust

use std::io::println;
pub fn main() {
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());
let v: @mut [int] = @mut [ 3, ..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());
}