7763b40c71
To match the init_fn() and init_fn_mut() changes.
10 lines
122 B
Rust
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]);
|
|
}
|