blob: 8dba98120bbebc905d2a34e791d11375209a4a72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// This is a test for issue #109.
use std;
fn slice[T](vec[T] e) {
let vec[T] result = std._vec.alloc[T](1 as uint);
log "alloced";
result += e;
log "appended";
}
fn main() {
slice[str](vec("a"));
}
|