rust/src/test/run-pass/vec-late-init.rs

8 lines
122 B
Rust

fn main() {
let mut later: ~[int];
if true { later = ~[1]; } else { later = ~[2]; }
log(debug, later[0]);
}