-
Couldn't load subscription status.
- Fork 13.9k
Closed
Description
There's a segfault when running the following code (it compiles fine).
fn main() {
let v = ~[1,2,3,4];
let b = v.filter(|&i| i > 1);
}Changing |&i| i > 1 to |i| *i > 1 does not fix the problem. However, using the vec::filter function instead of the method does not segfault.
Possibly related: #4878
Metadata
Metadata
Assignees
Labels
No labels