rust/src/test/run-pass/argv.rs

10 lines
210 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
fn main(vec[str] args) {
let vec[str] vs = vec("hi", "there", "this", "is", "a", "vec");
let vec[vec[str]] vvs = vec(args, vs);
for (vec[str] vs in vvs) {
for (str s in vs) {
log s;
}
}
}