13 lines
175 B
Rust
13 lines
175 B
Rust
|
// 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"));
|
||
|
}
|