Closed
Description
Hit this crash while trying to type-parametrize another part of the fuzzer (check_variants_of_ast). I was able to work around it by sprinkling ampersands around the fuzzer.
type e = {node: uint};
fn nop(_e: e) {}
fn bind_nop(my_e: e) {
bind nop(my_e);
}
fn for_first_T<T>(things: [T], fun: fn(T)) {
fun(things[0]);
}
fn main() {
for_first_T([{node: 0u}], bind_nop);
}
Stack trace:
#0 0x000023e9 in bind_nop ()
#1 0x00002594 in for_first_T ()
#2 0x000026e7 in main ()