rust/src/test/run-pass/import-glob-crate.rs
Graham Fawcett 7763b40c71 issue #1352: change param order on vec::init_elt, putting block in final position.
To match the init_fn() and init_fn_mut() changes.
2012-01-21 13:33:16 -08:00

10 lines
122 B
Rust

use std;
import vec::*;
fn main() {
let v = init_elt(0u, 0);
v += [4, 2];
assert (reversed(v) == [2, 4]);
}