Closed
Description
This program will cause a segfault:
fn main() {
let a : ~[int] = ~[];
do a.consume |_, _| {}
}
Although if the consumption is changed to vec::consume
the segfault does not happen.
This may be a dup of #4318?
This program will cause a segfault:
fn main() {
let a : ~[int] = ~[];
do a.consume |_, _| {}
}
Although if the consumption is changed to vec::consume
the segfault does not happen.
This may be a dup of #4318?