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

6 lines
190 B
Rust
Raw Normal View History

fn main(args: ~[str]) {
let vs: ~[str] = ~["hi", "there", "this", "is", "a", "vec"];
let vvs: ~[~[str]] = ~[args, vs];
2012-06-30 18:19:07 -05:00
for vvs.each |vs| { for vs.each |s| { log(debug, s); } }
}