2010-07-15 20:57:21 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
// This is a test for issue #109.
|
2010-07-15 20:57:21 -05:00
|
|
|
use std;
|
|
|
|
|
|
|
|
fn slice[T](vec[T] e) {
|
2011-06-15 13:19:50 -05:00
|
|
|
let vec[T] result = std::vec::alloc[T](1 as uint);
|
|
|
|
log "alloced";
|
|
|
|
result += e;
|
|
|
|
log "appended";
|
2010-07-15 20:57:21 -05:00
|
|
|
}
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn main() { slice[str](["a"]); }
|