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

9 lines
128 B
Rust
Raw Normal View History

2011-05-24 01:52:55 +00:00
use std;
2011-08-15 23:38:23 +00:00
import std::vec::*;
2011-05-24 01:52:55 +00:00
fn main() {
let v = init_elt(0, 0u);
v += ~[4, 2];
assert (reversed(v) == ~[2, 4]);
2011-05-24 01:52:55 +00:00
}