Closed
Description
The following code crashes inside of glue$copy$s, I believe when trying to decrement a refcount. The crash goes away if I don't use std._vec.alloc, if I change 'str' to 'int', or if the 'str' isn't a type parameter.
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"));
}
Metadata
Metadata
Assignees
Labels
No labels