PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/jruderman/rust
Rust | 9 lines | 7 code | 2 blank | 0 comment | 1 complexity | d42cc437584e9eb06adf6c5143114071 MD5 | raw file
1
2use std;
3import vec::*;
4
5fn main() {
6    let mut v = from_elem(0u, 0);
7    v = vec::append(v, ~[4, 2]);
8    assert (reversed(v) == ~[2, 4]);
9}