rust/src/test/run-pass/import-glob-crate.rs

10 lines
148 B
Rust
Raw Normal View History

2011-05-23 20:52:55 -05:00
extern mod std;
2012-09-05 14:32:05 -05:00
use vec::*;
2011-05-23 20:52:55 -05:00
fn main() {
let mut v = from_elem(0u, 0);
v = vec::append(v, ~[4, 2]);
assert (reversed(v) == ~[2, 4]);
}