/src/test/run-pass/argv.rs
http://github.com/jruderman/rust · Rust · 5 lines · 5 code · 0 blank · 0 comment · 2 complexity · 1b40e4831bda172817a68e99134c2540 MD5 · raw file
- fn main(args: ~[~str]) {
- let vs: ~[~str] = ~[~"hi", ~"there", ~"this", ~"is", ~"a", ~"vec"];
- let vvs: ~[~[~str]] = ~[args, vs];
- for vvs.each |vs| { for vs.each |s| { log(debug, s); } }
- }