You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"));
}