rust/src/test/run-pass/vec-alloc-append.rs

13 lines
175 B
Rust
Raw Normal View History

// This is a test for issue #109.
use std;
fn slice[T](vec[T] e) {
let vec[T] result = std._vec.alloc[T](uint(1));
result += e;
}
fn main() {
slice[str](vec("a"));
}