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

6 lines
180 B
Rust
Raw Normal View History

fn main(args: [str]) {
let vs: [str] = ["hi", "there", "this", "is", "a", "vec"];
let vvs: [[str]] = [args, vs];
for vs: [str] in vvs { for s: str in vs { log s; } }
}