/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

  1. fn main(args: ~[~str]) {
  2. let vs: ~[~str] = ~[~"hi", ~"there", ~"this", ~"is", ~"a", ~"vec"];
  3. let vvs: ~[~[~str]] = ~[args, vs];
  4. for vvs.each |vs| { for vs.each |s| { log(debug, s); } }
  5. }