13 lines
218 B
Rust
13 lines
218 B
Rust
|
|
|
|
// This is a test for issue #109.
|
|
use std;
|
|
|
|
fn slice[T](e: vec[T]) {
|
|
let result: vec[T] = std::vec::alloc[T](1 as uint);
|
|
log "alloced";
|
|
result += e;
|
|
log "appended";
|
|
}
|
|
|
|
fn main() { slice[str](["a"]); } |