Convert run-pass/import-glob-crate to ivecs
This commit is contained in:
parent
cb59e28679
commit
48ad07b5d6
@ -1,9 +1,9 @@
|
||||
|
||||
use std;
|
||||
import std::vec::*;
|
||||
import std::ivec::*;
|
||||
|
||||
fn main() {
|
||||
let v = empty[int]();
|
||||
v += [4, 2];
|
||||
assert (reversed(v) == [2, 4]);
|
||||
let v = init_elt(0, 0u);
|
||||
v += ~[4, 2];
|
||||
assert (reversed(v) == ~[2, 4]);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user